Page 1 of 1

Use Alternative Titles when searching the moviedb.org

PostPosted: Tue Feb 05, 2013 3:54 am
by maximus2112
Hello,

I notice that some movie titles in the moviedb.org database contain colons, which is an illegal character in windows. Also, there are many shorter names for movies in the alternative title list. Is there a way to tell serviio to search the alternative title strings? I do not know if they have an api for this, but it would be nice.

How do people currently get movies tagged correctly when there is a colon in the title in the moviedb.org database?

Thanks

Re: Use Alternative Titles when searching the moviedb.org

PostPosted: Tue Feb 05, 2013 10:33 am
by zip
It should already search through alternative names, afaik.

Re: Use Alternative Titles when searching the moviedb.org

PostPosted: Thu Feb 07, 2013 3:24 am
by maximus2112
Hmm, I'm not seeing that. Here is an example (yes I have kids, :-))

From the serviio log file:

2013-02-05 20:48:39,421 INFO [LibraryAdditionsCheckerThread] Added file 'Barbie Fairytopia Mermaidia.m4v' (title: Barbie) to Library

From the moviedb.com database:

http://www.themoviedb.org/movie/13285-b ... lease-info

My only guess here is that we are searching for just English alternative titles since I see a match but its country is set to FR.

Re: Use Alternative Titles when searching the moviedb.org

PostPosted: Thu Feb 07, 2013 10:31 am
by zip
maximus2112 wrote:My only guess here is that we are searching for just English alternative titles since I see a match but its country is set to FR.

That might be it - try changing metadata language to French in the console.

Re: Use Alternative Titles when searching the moviedb.org

PostPosted: Fri Feb 08, 2013 3:23 am
by maximus2112
That appears to have worked.

2013-02-08 22:34:06,203 INFO [LibraryAdditionsCheckerThread] Added file 'Barbie Mermaidia.m4v' (title: Barbie Mermaidia) to Library


So do I really have to look at every movie that failed, figure out what language, switch the language to match the title I want,
then, rename the file to force an update? Would it be possible to alter the code to scan alternative titles in all languages, and
maybe add a checkbox to enable/disable this?

Re: Use Alternative Titles when searching the moviedb.org

PostPosted: Fri Feb 08, 2013 4:10 am
by maximus2112
Then again, maybe not. I added to themoviedb an alternative title with country set to usa.

Then a did a force refresh:

2013-02-08 23:21:51,875 INFO [LibraryAdditionsCheckerThread] Added file 'Barbie A Perfect Christmas.m4v' (title: Barbie) to Library

The website shows the matching name: https://www.themoviedb.org/movie/77499- ... -christmas

So, I'm not real sure how the code is matching or not matching the movie title. It would be nice to see the query being sent and then see what is returned.

Re: Use Alternative Titles when searching the moviedb.org

PostPosted: Fri Feb 08, 2013 12:30 pm
by zip
maximus2112 wrote:It would be nice to see the query being sent and then see what is returned.

I think you should be able to see this in the detailed log (but not 100% sure).

Re: Use Alternative Titles when searching the moviedb.org

PostPosted: Sat Feb 09, 2013 8:21 pm
by maximus2112
Thanks Zip. Looking at the detailed log and running some more tests, it looks like language does matter.

The query to moviedb says this:

2013-02-09 15:09:44,984 DEBUG [TheMovieDBSourceAdaptor] Retrieving details of movie (movieId = 73456, language = en)

So if you are not getting the correct title of a movie then you need to update moviedb.org with the alternative title to match and then force a refresh.

Any chance of updating the code to ignore language?

Re: Use Alternative Titles when searching the moviedb.org

PostPosted: Sat Feb 09, 2013 11:20 pm
by zip
There should be search log entry before this. Language will stay.

Re: Use Alternative Titles when searching the moviedb.org

PostPosted: Sun Jun 02, 2013 6:36 pm
by servant74
I have a movie with both the Primary and Alternative working titles have colons's in them.

Is there a reasonable workaround? Possibly a way to substitute a hyphen for the colon?

Just a thought.

(Running Pro 1.2.1 currently)