[mythtv-users] tmdb3.py with/without year

Raymond Wagner raymond at wagnerrp.com
Sun Jan 18 04:31:38 UTC 2015


On 1/12/2015 12:39 PM, Thomas Mashos wrote:
> On Mon, Jan 12, 2015 at 8:51 AM, Angela <angela.schmid at wolke7.net> wrote:
>>>> However, the first one is what I want, and the metadata shows
>>>> <year>1987</year>, so I'll add that to the filename, and maybe it will
>>>> filter out all the extraneous results.  Nope, now I get zero results:
>>>> # tmdb3.py -M "Predator 1987"
>> Change /usr/share/mythtv/metadata/Movie/tmdb3.py
>> from MythTV.tmdb3 import searchMovie
>> into
>> from MythTV.tmdb3 import searchMovieWithYear
>>
>> and use
>>
>> tmdb3.py  -M "Predator (1987)"
>>
>> Your files need to be in this format.
>>
>>
>> I looked also a long time how to minimize the results on a specific year,
>> investigated the tmdb api, etc. Till I noticed that everything already
>> exists, in tmdb_api.py:  the code is available under searchMovieWithYear.
>> I used it for a long time and never had issues, I think it should be the
>> default, as it also supports finding movies without a year.
>> Sometimes the date is incorrect and nothing is found, it would be great if
>> it makes a second search without the year.
> Last I head MythTV strips out everything between the () in a filename
> when passing it to tmdb3.py

Correct.  This is also true for anything within brackets "[]" or braces 
"{}" as well.


More information about the mythtv-users mailing list