[mythtv-commits] Ticket #12538: Recent change in tmdb3.py making it often fail on country specific requests
MythTV
noreply at mythtv.org
Wed Nov 11 18:33:54 UTC 2015
#12538: Recent change in tmdb3.py making it often fail on country specific requests
-----------------------------------------+----------------------------
Reporter: hikavdh@… | Owner: dekarl
Type: Patch - Bug Fix | Status: infoneeded
Priority: minor | Milestone:
Component: MythTV - Mythmetadatalookup | Version: 0.27.5
Severity: medium | Resolution:
Keywords: tmdb3.py | Ticket locked: 0
-----------------------------------------+----------------------------
Comment (by hikavdh@…):
That might work, but I personally find it neater to not use a try loop to
catch predictable errors.
OK, the index error comes from an empty result on releases, so change line
68 to:
{{{
- if opts.country:
+ if opts.country and len(releases) > 0:
}}}
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12538#comment:5>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list