id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,mlocked 12455,tmdb3.py crashes with status code 1,spmorton@…,Karl Egly,"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 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 ",Patch - Bug Fix,closed,minor,0.27.6,MythTV - Mythmetadatalookup,Unspecified,medium,fixed,,,0