[mythtv-users] tmdb3 wonkiness

Phil Bridges gravityhammer at gmail.com
Thu Sep 17 14:35:43 UTC 2015


On Wed, Sep 16, 2015 at 5:36 PM, Jonatan Lindblad <mythtv at comhem.se> wrote:

> On 2015-09-10 02:20, Phil Bridges wrote:
>
>> It appears my tmdb3 is erroring out.
>>
>> For example, I'm pulling the info for Paddingon.  Here's my frontend log:
>>
>> 2015-09-09 19:19:32.828315 I [2531/12820] VideoScanner videoscan.cpp:354
>> (updateDB) - Adding :  : Paddington.mkv : 890c3a9836bae167
>> 2015-09-09 19:19:33.244504 I [2531/12822] MetadataDownload
>> metadatagrabber.cpp:455 (RunGrabber) - Running Grabber:
>> /usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a US -M Paddington
>> 2015-09-09 19:19:34.646868 I [2531/12822] MetadataDownload
>> metadatacommon.cpp:1188 (ParseMetadataItem) - Result Found, Season 0
>> Episode 0
>> 2015-09-09 19:19:34.646958 I [2531/12822] MetadataDownload
>> metadatacommon.cpp:1188 (ParseMetadataItem) - Result Found, Season 0
>> Episode 0
>> 2015-09-09 19:19:34.647083 I [2531/12822] MetadataDownload
>> metadatacommon.cpp:1188 (ParseMetadataItem) - Result Found, Season 0
>> Episode 0
>> 2015-09-09 19:19:34.647178 I [2531/12822] MetadataDownload
>> metadatacommon.cpp:1188 (ParseMetadataItem) - Result Found, Season 0
>> Episode 0
>> 2015-09-09 19:19:34.647288 I [2531/12822] MetadataDownload
>> metadatacommon.cpp:1188 (ParseMetadataItem) - Result Found, Season 0
>> Episode 0
>> 2015-09-09 19:19:34.647382 I [2531/12822] MetadataDownload
>> metadatacommon.cpp:1188 (ParseMetadataItem) - Result Found, Season 0
>> Episode 0
>> 2015-09-09 19:19:34.647491 I [2531/12822] MetadataDownload
>> metadatacommon.cpp:1188 (ParseMetadataItem) - Result Found, Season 0
>> Episode 0
>> 2015-09-09 19:19:34.647562 I [2531/12822] MetadataDownload
>> metadatadownload.cpp:230 (findBestMatch) - Single Exact Title Match For
>> Paddington
>> 2015-09-09 19:19:35.052001 I [2531/12822] MetadataDownload
>> metadatagrabber.cpp:455 (RunGrabber) - Running Grabber:
>> /usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a US -D 116149
>> 2015-09-09 19:19:37.450316 I [2531/12822] MetadataDownload
>> metadatagrabber.cpp:455 (RunGrabber) - Running Grabber:
>> /usr/share/mythtv/metadata/Movie/tmdb3.py -l en -a US -C 116149
>> 2015-09-09 19:19:37.750691 I [2531/12822] MetadataDownload
>> metadatadownload.cpp:187 (run) - Metadata Lookup Failed: No Results
>> Paddington 0 0
>> 2015-09-09 19:19:37.752281 I [2531/2531] CoreContext videodlg.cpp:3347
>> (customEvent) - No results found for Paddington 0 0
>>
>> 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/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
>>
>>
>> Any ideas on how to fix this?
>>
>
> Status code 25 means that you have exceeded 40 requests in 10 seconds from
> your IP address.  What is needed is to add support for retries using the
> 'Retry-After' header, and/or keep track of the limit by using the
> 'X-RateLimit' header.
>
> http://docs.themoviedb.apiary.io/
>
>
>
A-ha!  Thanks for the response.  I parsed my pastebin above, and it is,
indeed, erroring out on retrieval #41.

Myth gurus - is there anything in the retrieval script that limits the
number of queries?  Am I the only one seeing this?  Does Myth need to pull
the pages for all of the individuals listed on the credits?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20150917/25035a87/attachment.html>


More information about the mythtv-users mailing list