[mythtv-users] TheTVdb lookups failing since v29 upgrade
Richard Shaw
hobbes1069 at gmail.com
Sun Dec 10 12:02:44 UTC 2017
On Sat, Dec 9, 2017 at 5:57 PM, Mike Holden <mikeholden99+mythtv at gmail.com>
wrote:
> [temp at severus ~]$ /usr/share/mythtv/metadata/Television/ttvdb.py -l en -a
> GB -C 221630
> /usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852:
> InsecureRequestWarning: Unverified HTTPS request is being made. Adding
> certificate verification is strongly advised. See:
> https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
> InsecureRequestWarning)
> /usr/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py:852:
> InsecureRequestWarning: Unverified HTTPS request is being made. Adding
> certificate verification is strongly advised. See:
> https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
> InsecureRequestWarning)
> ! Error: 'NoneType' object has no attribute 'keys'
> Traceback (most recent call last):
> File "/usr/share/mythtv/metadata/Television/ttvdb.py", line 2464, in
> <module>
> sys.exit(main())
> File "/usr/share/mythtv/metadata/Television/ttvdb.py", line 2257, in
> main
> t._getShowData(series_season_ep[0], opts.language)
> File "/usr/lib/python2.7/site-packages/MythTV/ttvdb/tvdb_api.py", line
> 1054, in _getShowData
> for curInfo in seriesInfoEt.keys():
> AttributeError: 'NoneType' object has no attribute 'keys'
>
Are you sure that's a valid TV series? I got the same result as you but
when I looked up a series number from thetvdb.com and tried it everything
worked[1] on my F26 system.
That being said, if you do pass an incorrect series ID it should handle it
gracefully instead of the very unhelpful error message it gives.
Thanks,
Richard
[1] $ /usr/share/mythtv/metadata/Television/ttvdb.py -l en -a US -C 80348
<?xml version='1.0' encoding='UTF-8'?>
<metadata>
<item>
<language>en</language>
<title>Chuck</title>
<network>NBC</network>
<airday>Friday</airday>
<airtime>8:00 PM</airtime>
<description>This high-concept action comedy follows Chuck Bartowski as
the Buy More computer geek turned secret agent. When Chuck unwittingly
downloads a database of government information and deadly fighting skills
into his head, he becomes the CIA's most vital secret. This sets Chuck on a
path to become a full-fledged spy, assisted by the stoic Colonel John
Casey; Chuck's best friend, Morgan Grimes; and the CIA's top agent Sarah
Walker. With the help of this unlikely team and his unorthodox techniques,
Chuck is ready to take Operation Bartowski freelance.</description>
<certifications>
<certification locale="us" name="TV-PG"/>
</certifications>
<categories>
<category type="genre" name="Action"/>
<category type="genre" name="Adventure"/>
<category type="genre" name="Comedy"/>
<category type="genre" name="Drama"/>
</categories>
<studios>
<studio name="NBC"/>
</studios>
<runtime>45</runtime>
<inetref>80348</inetref>
<imdb>0934814</imdb>
<userrating>8.7</userrating>
<ratingcount>970</ratingcount>
<year>2007</year>
<releasedate>2007-09-24</releasedate>
<lastupdated>Fri, 24 Nov 2017 21:33:33 GMT</lastupdated>
<status>Ended</status>
<images>
<image type="coverart" url="
http://www.thetvdb.com/banners/posters/80348-19.jpg" thumb="
http://www.thetvdb.com/banners/_cache/posters/80348-19.jpg"/>
<image type="fanart" url="
http://www.thetvdb.com/banners/fanart/original/80348-1.jpg" thumb="
http://www.thetvdb.com/banners/_cache/fanart/original/80348-1.jpg"/>
<image type="banner" url="
http://thetvdb.com/banners/graphical/80348-g26.jpg" thumb="
http://thetvdb.com/banners/_cache/graphical/80348-g26.jpg"/>
</images>
</item>
</metadata>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20171210/461f391c/attachment.html>
More information about the mythtv-users
mailing list