[mythtv-commits] Ticket #12455: tmdb3.py crashes with status code 1
MythTV
noreply at mythtv.org
Sat Jun 13 16:59:48 UTC 2015
#12455: tmdb3.py crashes with status code 1
--------------------------------------+-------------------------
Reporter: spmorton@… | Owner:
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: Unspecified
Severity: medium | Keywords:
Ticket locked: 0 |
--------------------------------------+-------------------------
tmdb3 crashes when large number of returns are encountered. Directly
running the script from command line with tmdb3.py --debug -l en -a US -M
'alien' returns KeyError: 25.
line 167 of the script is intended to limit the number of returns,
however, the number is greater than the limit imposed by tmdb api per the
docs, this limit is 40. The api termination of the data stream causes the
script to crash. testing the limits with 15 seems to be acceptable to tmdb
which is considerably less than 40, however, this is a shared key service
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 291, in main
buildList(args[0], opts)
File "/usr/share/mythtv/metadata/Movie/tmdb3.py", line 140, in buildList
if getattr(res, j):
File "/usr/lib/python2.7/site-packages/MythTV/tmdb3/util.py", line 153,
in __get__
self.poller.__get__(inst, owner)()
File "/usr/lib/python2.7/site-packages/MythTV/tmdb3/util.py", line 70,
in __call__
if not self.apply(req.readJSON(), False):
File "/usr/lib/python2.7/site-packages/MythTV/tmdb3/cache.py", line 118,
in __call__
data = self.func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/MythTV/tmdb3/request.py", line
128, in readJSON
handle_status(data, url)
File "/usr/lib/python2.7/site-packages/MythTV/tmdb3/request.py", line
163, in handle_status
status = status_handlers[data.get('status_code', 1)]
KeyError: 25
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12455>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list