Opened 7 years ago
Closed 7 years ago
Last modified 7 years ago
#13130 closed Patch - Bug Fix (fixed)
[PATCH] Fixes for regressions in tvdb
Reported by: | Owned by: | Peter Bennett | |
---|---|---|---|
Priority: | major | Milestone: | 29.1 |
Component: | MythTV - Mythmetadatalookup | Version: | Master Head |
Severity: | medium | Keywords: | |
Cc: | Peter Bennett, Mark Spieth | Ticket locked: | no |
Description
With the move from v1 to v2 api for ttvdb I noticed in my logs:
E MetadataImageDownload metadataimagedownload.cpp:255 (run) Tried to write http://thetvdb.com/banners/, but it appears to be an HTML redirect or corrupt file (filesize 235).
This comes from:
$ ttvdb.py -l en -a GB -C 330432 <?xml version='1.0' encoding='UTF-8'?> <metadata> <item> <language>en</language> <title>Nine Minute Ninja</title> <network>CBBC</network> <description>Art Ninja spinoff. Ricky makes art in nine minutes.</description> <studios> <studio name="CBBC"/> </studios> <runtime>10</runtime> <inetref>330432</inetref> <userrating>0</userrating> <ratingcount>0</ratingcount> <year>2015</year> <releasedate>2015-06-24</releasedate> <lastupdated>Wed, 20 Sep 2017 20:43:40 GMT</lastupdated> <status>Continuing</status> <images> <image type="coverart" url="http://www.thetvdb.com/banners/posters/330432-1.jpg" thumb="http://www.thetvdb.com/banners/_cache/posters/330432-1.jpg"/> <image type="banner" url="http://thetvdb.com/banners/" thumb="http://thetvdb.com/banners/_cache/"/> </images> </item> </metadata>
Compared with v29.0 where I see:
$ ttvdb.py -l en -a GB -C 330432 <?xml version='1.0' encoding='UTF-8'?> <metadata> <item> <language>en</language> <title>Nine Minute Ninja</title> <network>CBBC</network> <description>Art Ninja spinoff. Ricky makes art in nine minutes.</description> <categories> <category type="genre" name="Children"/> </categories> <studios> <studio name="CBBC"/> </studios> <runtime>10</runtime> <inetref>330432</inetref> <ratingcount>0</ratingcount> <year>2015</year> <releasedate>2015-06-24</releasedate> <lastupdated>Wed, 20 Sep 2017 20:43:40 GMT</lastupdated> <status>Continuing</status> <images> <image type="coverart" url="http://www.thetvdb.com/banners/posters/330432-1.jpg" thumb="http://www.thetvdb.com/banners/_cache/posters/330432-1.jpg"/> </images> </item> </metadata>
So as well as the bogus/strange banner the genre's are missing and their is a spurious (?) userrating of 0.
When I came to fix I also found that doctest
was broken so I fixed those before fixing the issue I had seen and adding a test case for it.
Patches are available in https://github.com/MythTV/mythtv/compare/master...ijc:ttvdb-fixes. I'll also attach here.
Attachments (8)
Change History (17)
Changed 7 years ago by
Attachment: | patches.tar added |
---|
comment:1 Changed 7 years ago by
Second patch in the series was rejected due to containing too many URLs (it touches a test case which contains URLs) so rather than continuing to attach them individually I have attached a tarball with all 6 patches it it.
comment:2 Changed 7 years ago by
Owner: | changed from JYA to Peter Bennett |
---|---|
Status: | new → assigned |
comment:4 Changed 7 years ago by
Reporter: | changed from ijc@… to Ian Campbell <ijc@…> |
---|
Changed 7 years ago by
Attachment: | 0001-ttvdb-Update-Fixer-Upper-test-cases-with-wildcards.patch added |
---|
Patch 1/6
Changed 7 years ago by
Attachment: | 0002-ttvdb-Update-NOVA-Eclipse-Over-America-test-case.patch added |
---|
Patch 2/6
Changed 7 years ago by
Attachment: | 0003-ttvdb-Ignore-banner-of-just-http-thetvdb.com-banners.patch added |
---|
Patch 3/6
Changed 7 years ago by
Attachment: | 0006-ttvdb-Add-new-test-case-ttvdb.py-l-en-a-GB-C-330432.patch added |
---|
Patch 6/6
comment:5 Changed 7 years ago by
Milestone: | needs_triage → 29.1 |
---|---|
Status: | assigned → accepted |
comment:6 Changed 7 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
comment:9 Changed 7 years ago by
Owner: | changed from Peter Bennett to Peter Bennett |
---|
6 patches in tarball