[mythtv-users] tmdb3 wonkiness

Phil Bridges gravityhammer at gmail.com
Wed Sep 16 15:16:01 UTC 2015


On Fri, Sep 11, 2015 at 9:40 PM, Phil Bridges <gravityhammer at gmail.com>
wrote:

>
>
> On Fri, Sep 11, 2015 at 5:14 PM, Bill Meek <keemllib at gmail.com> wrote:
>
>> On 09/11/2015 03:52 PM, Phil Bridges wrote:
>> ...
>>
>>> If I manually run "/usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a US
>>>> -D 116149", I get:
>>>>
>>>> Traceback (most recent call last):
>>>>
>>>
>> ...
>>
>>>   File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/request.py",
>>>> line 163, in handle_status
>>>>     status = status_handlers[data.get('status_code', 1)]
>>>> KeyError: 25
>>>>
>>>
>> I ran the above (in 0.28-pre) and got
>>
>>   File "/usr/local/lib/python2.7/dist-packages/MythTV/tmdb3/request.py",
>> line 163, in handle_status
>>     status = status_handlers[data.get('status_code', 1)]
>>
>> Then I remembered that my programs live in /usr/local/... e.g:
>>
>>      /usr/local/share/mythtv/metadata/Movie/tmdb3.py
>>
>> Which works OK. Possibly, you've got the wrong version of tmdb3.py.
>> I also ran without the -l and -a options in between tests.
>>
>> --
>> Bill
>> _______________________________________________
>> 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
>
>
> Thanks for the response.  I verified that I had only 1 instance of
> tmdb3.py, located here: /usr/share/mythtv/metadata/Movie/tmdb3.py
>
> Here's something interesting:  I pulled up the info for Paddington today.
> It found the right movie, and had artwork.  I selected it through
> mythfrontend, but it is nowhere to be found when I browse my videos - I see
> a question mark for the image, and no description.  Here's the log of that:
>
> 2015-09-11 21:27:03.334171 E [2531/2531] CoreContext xmlparsebase.cpp:350
> (ParseChildren) - XMLParseBase: Parent is NULL
> 2015-09-11 21:27:07.757592 I [2531/24405] MetadataDownload
> metadatagrabber.cpp:455 (RunGrabber) - Running Grabber:
> /usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a US -M Paddington
> 2015-09-11 21:27:09.260860 I [2531/24405] MetadataDownload
> metadatacommon.cpp:1188 (ParseMetadataItem) - Result Found, Season 0
> Episode 0
> 2015-09-11 21:27:09.260955 I [2531/24405] MetadataDownload
> metadatacommon.cpp:1188 (ParseMetadataItem) - Result Found, Season 0
> Episode 0
> 2015-09-11 21:27:09.261073 I [2531/24405] MetadataDownload
> metadatacommon.cpp:1188 (ParseMetadataItem) - Result Found, Season 0
> Episode 0
> 2015-09-11 21:27:09.261165 I [2531/24405] MetadataDownload
> metadatacommon.cpp:1188 (ParseMetadataItem) - Result Found, Season 0
> Episode 0
> 2015-09-11 21:27:09.261273 I [2531/24405] MetadataDownload
> metadatacommon.cpp:1188 (ParseMetadataItem) - Result Found, Season 0
> Episode 0
> 2015-09-11 21:27:09.261372 I [2531/24405] MetadataDownload
> metadatacommon.cpp:1188 (ParseMetadataItem) - Result Found, Season 0
> Episode 0
> 2015-09-11 21:27:09.261476 I [2531/24405] MetadataDownload
> metadatacommon.cpp:1188 (ParseMetadataItem) - Result Found, Season 0
> Episode 0
> 2015-09-11 21:27:09.458891 I [2531/24405] MetadataDownload
> metadatagrabber.cpp:455 (RunGrabber) - Running Grabber:
> /usr/share/mythtv/metadata/Television/ttvdb.py -l en -a US -M Paddington
> 2015-09-11 21:27:09.659252 I [2531/24405] MetadataDownload
> metadatacommon.cpp:1188 (ParseMetadataItem) - Result Found, Season 0
> Episode 0
> 2015-09-11 21:27:09.659379 I [2531/24405] MetadataDownload
> metadatacommon.cpp:1188 (ParseMetadataItem) - Result Found, Season 0
> Episode 0
> 2015-09-11 21:27:09.659511 I [2531/24405] MetadataDownload
> metadatacommon.cpp:1188 (ParseMetadataItem) - Result Found, Season 0
> Episode 0
> 2015-09-11 21:27:09.659559 I [2531/24405] MetadataDownload
> metadatadownload.cpp:176 (run) - Returning Metadata Results: Paddington 0 0
> 2015-09-11 21:27:13.065628 I [2531/24424] MetadataDownload
> metadatagrabber.cpp:455 (RunGrabber) - Running Grabber:
> /usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a US -D 116149
> 2015-09-11 21:27:15.567285 I [2531/24424] MetadataDownload
> metadatagrabber.cpp:455 (RunGrabber) - Running Grabber:
> /usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a US -C 116149
> 2015-09-11 21:27:15.867670 I [2531/24424] MetadataDownload
> metadatadownload.cpp:187 (run) - Metadata Lookup Failed: No Results
> Paddington 0 0
> 2015-09-11 21:27:15.872372 I [2531/2531] CoreContext videodlg.cpp:3347
> (customEvent) - No results found for Paddington 0 0
>
>
>
As another follow-up:

I just ran this command twice.  The first time, I got:
~ #  /usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a US -D 116149
Traceback (most recent call last):
  File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 300, in <module>
    main()
  File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 294, in main
    buildSingle(args[0], opts)
  File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 88, in buildSingle
    if cast.profile: d['thumb'] = cast.profile.geturl()
  File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/util.py", line 153,
in __get__
    self.poller.__get__(inst, owner)()
  File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/util.py", line 80,
in __call__
    self.apply(req.readJSON())
  File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/cache.py", line
118, in __call__
    data = self.func(*args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/request.py", line
128, in readJSON
    handle_status(data, url)
  File "/usr/lib64/python2.7/site-packages/MythTV/tmdb3/request.py", line
163, in handle_status
    status = status_handlers[data.get('status_code', 1)]
KeyError: 25

When I ran it again, though, I got responses:
http://pastebin.com/MkKpDEnQ


What's up with this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20150916/66e3dccf/attachment.html>


More information about the mythtv-users mailing list