[mythtv-users] Important: Changes to Metadata lookup in March 2021

Hika van den Hoven hikavdh at gmail.com
Sun Feb 28 02:37:28 UTC 2021


Hoi Jay,

Sunday, February 28, 2021, 3:08:06 AM, you wrote:

> On 2/27/21 5:22 PM, Jay Foster wrote:
>> On 2/27/21 5:15 PM, Jay Foster wrote:
>>> On 2/27/21 4:53 PM, Hika van den Hoven wrote:
>>>> Hoi Jay,
>>>>
>>>> Sunday, February 28, 2021, 1:27:20 AM, you wrote:
>>>>
>>>>> On 2/27/21 4:11 PM, Jay Foster wrote:
>>>>>> On 2/27/21 1:37 PM, John Finlay via mythtv-users wrote:
>>>>>>> On 2/27/2021 1:18 PM, Jay Foster wrote:
>>>>>>>> On 2/26/21 6:18 AM, Peter Bennett wrote:
>>>>>>>>>
>>>>>>>>> On 2/25/21 4:22 PM, Hika van den Hoven wrote:
>>>>>>>>>> I have tested the integration with mythtv and that works. Even 
>>>>>>>>>> beter
>>>>>>>>>> than I had expected!
>>>>>>>>>> I thought it possible that mythmetadatalookup would simply use the
>>>>>>>>>> script name in the inetref, but I thought first to test what would
>>>>>>>>>> happen if I renamed tvmaze.py to ttvdb.py and it worked. So 
>>>>>>>>>> good that
>>>>>>>>>> the inetref was after the hit changed to reflect tvmaze.py.
>>>>>>>>>>
>>>>>>>>>> However, if you do not copy either tvmaze.py or tmdb3tv.py to 
>>>>>>>>>> ttvdb.py
>>>>>>>>>> searches won't work, it will always come up with a tmdb3.py 
>>>>>>>>>> reference.
>>>>>>>>>>
>>>>>>>>>> So choose which of the two you want and copy (or simlink) that 
>>>>>>>>>> one to
>>>>>>>>>> ttvdb.py.
>>>>>>>>>
>>>>>>>>> Hi Hika
>>>>>>>>>
>>>>>>>>> Can you explain this. I don't understand.
>>>>>>>>>
>>>>>>>>> All you need to do is go into mythfrontend -> setup -> Artwork and
>>>>>>>>> Data Sources -> Television Metadata Source
>>>>>>>>>
>>>>>>>>> Change there to whichever script you want and it will use that
>>>>>>>>> script for shows that do not have the inetref filled in.
>>>>>>>>>
>>>>>>>>> If you link one of the other script names to ttvdb.py then those
>>>>>>>>> recording rules and recorded shows that have ttvdb.py_nnnnn in the
>>>>>>>>> inetref will lookup the wrong show because the nnnnn is different
>>>>>>>>> for each of the sources.
>>>>>>>>>
>>>>>>>>> Maybe this works differently in 0.27. Does 0.27 have the Artwork 
>>>>>>>>> and
>>>>>>>>> Data Sources entry?
>>>>>>>>>
>>>>>>>>> Peter
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> mythtv-users mailing list
>>>>>>>>> mythtv-users at mythtv.org
>>>>>>>>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>>>>>>>>> http://wiki.mythtv.org/Mailing_List_etiquette
>>>>>>>>> MythTV Forums: https://forum.mythtv.org
>>>>>>>>
>>>>>>>> This is not working for me with 0.28.  I go to mythfrontend -> setup
>>>>>>>> -> Artwork and Data Source -> Television, but there is only one
>>>>>>>> choice there (TheTVDB.com).  This is the name when using the 
>>>>>>>> previous
>>>>>>>> tvdb.py script.  Is it also the correct name for the new tvdb3tv.py
>>>>>>>> script? And why do I not see tvmaze as a choice? I tried restarting
>>>>>>>> the backend and frontend, but makes no difference.
>>>>>>>>
>>>>>>>
>>>>>>> Did you copy tmdb3tv.py to the 
>>>>>>> "/usr/share/mythtv/metadata/Television"
>>>>>>> driectory? On 0.29 the mythtv frontend seems to scan the contents of
>>>>>>> the directory to populate the Artwork and Data Sources choices.
>>>>>>>
>>>>>>> John
>>>>>>> _______________________________________________
>>>>>>> mythtv-users mailing list
>>>>>>> mythtv-users at mythtv.org
>>>>>>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>>>>>>> http://wiki.mythtv.org/Mailing_List_etiquette
>>>>>>> MythTV Forums: https://forum.mythtv.org
>>>>>>
>>>>>> Yes I have.
>>>>>> jay at mythbox:/usr/share/mythtv/metadata$ ls -l Television/
>>>>>> total 188
>>>>>> -rwxrwxr-x 1 jay  jay    5555 Feb 26 11:25 tmdb3tv.py
>>>>>> -rwxr-xr-x 1 root root 133392 Aug 26  2018 ttvdb.py
>>>>>> -rw-r--r-- 1 root root    248 Jan 26  2018 tvdb_test.conf
>>>>>> -rwxrwxr-x 1 jay  jay   21512 Feb 27 12:59 tvmaze.py
>>>>>> -rw-rw-r-- 1 jay  jay   17220 Feb 26 11:25 tvmaze_tests.txt
>>>>>> jay at mythbox:/usr/share/mythtv/metadata$
>>>>>>
>>>>>>   From the frontend, when I go to Artwork and Data Sources, I see a 
>>>>>> brief
>>>>>> popup stating that MythTV is scanning sources, but the Television
>>>>>> selection box has only one choice filled in (the existing ttvdb.py).
>>>>>> Jay
>>>>
>>>>> When I compare the previous tmdb3 directory with the new tmdb3 
>>>>> directory
>>>>> (in /usr/lib/python2.7/dist-packages/MythTV), I notice that the new
>>>>> tvdb3 directory is missing the lookup.py script.  Is that needed?  
>>>>> Where
>>>>> do I get it for the new version?
>>>>> Jay
>>>>
>>>> Have you installed the 31 bindings in python3 or have you updated the
>>>> python2 bindings from your mythtv version?
>>>> And have you correspondingly adapted the first line of the grabber
>>>> files under /usr/share/mythtv/metadata/Television and Movie to point
>>>> to the right python version?
>>>>
>>>> What is the response to:
>>>> tvmaze.py -t
>>>> tmdb3tv.py -t
>>>> tmdb3.py -t
>>>>
>>>> If either of the grabber file does not respond with:
>>>> "Everything appears in order."
>>>> it probably will not be seen as a valid option and won't show in the
>>>> selection list.
>>>>
>>>> Tot mails,
>>>>    Hika                            mailto:hikavdh at gmail.com
>>>>
>>>>
>>>>
>>> Yes, I have done each of those tasks, and the test option reports 
>>> everything looks okay.
>>> jay at mythbox:/usr/share/mythtv/metadata$ ./Television/tmdb3tv.py -t
>>> Everything appears in order.
>>> jay at mythbox:/usr/share/mythtv/metadata$ ./Television/tvmaze.py -t
>>> Everything appears in order.
>>> jay at mythbox:/usr/share/mythtv/metadata$ ./Movie/tmdb3.py -t
>>> Everything appears in order.
>>> jay at mythbox:/usr/share/mythtv/metadata$
>>> Jay
>>> _______________________________________________
>>> mythtv-users mailing list
>>> mythtv-users at mythtv.org
>>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>>> http://wiki.mythtv.org/Mailing_List_etiquette
>>> MythTV Forums: https://forum.mythtv.org
>> I just now went back to the frontend and tried to select the new 
>> metadata sources again.  The new Movie and new Television choices now 
>> show up (yeah).  I selected the new tmdb V3 sources for both Movies and 
>> Television (tvmaze still does not pass it's tests due to some kind of 
>> TLS certificate issue).  I will restart the frontend and backend.
>> How do I test that this works from within MythTV?
>> Jay
>> _______________________________________________
> I am oh so close, but not quite there yet.
> I next ran into the query.isnumeric() issue, which I corrected by 
> changing to isdigit() as suggested elsewhere in this thread.  However,
> lookups are still failing.  If I run:
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -M Monk
> the script returns valid XML text, which contains an inetref value of 
> 1695.  But when I then run:
> /usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695
> I get an error (ERROR: Episode not found: ['1695']
> What am I missing here?
> Jay

You need to add an episode title. It is on the next line in Peters
mail. I at first missed that too! ;-)
/usr/share/mythtv/metadata/Television/tmdb3tv.py -l en -a US -N 1695
"Mr. Monk and the Psychic"


Tot mails,
  Hika                            mailto:hikavdh at gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens



More information about the mythtv-users mailing list