Kodi Community Forum

Full Version: TV show is not recognized by TVDB when the year is specified
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I recently installed RaspBMC and in general it works pretty good.
However, I'm having a trouble making it recognize Attack on Titan anime series.

After enabling debugging and checking the logs I can see that Kodi successfully extracted series name from the directory name (Attack on Titan [2013][1080p][jp][en-sub]) but couldn't retrieve anything from thetvdb.com:
Quote:20:31:37 T:2691687488 DEBUG: VideoInfoScanner: No NFO file found. Using title search for 'nfs://.../Attack on Titan [2013][1080p][jp][en-sub]/'
20:31:37 T:2691687488 DEBUG: FindMovie: Searching for 'Attack on Titan' using The TVDB scraper (path: '/home/pi/.kodi/addons/metadata.tvdb.com', content: 'tvshows', version: '1.7.1')
20:31:37 T:2691687488 DEBUG: scraper: CreateSearchUrl returned <url cache="cache-Attack%20on%20Titan%20(2013)-en.xml">http://thetvdb.com/api/GetSeries.php?seriesname=Attack%20on%20Titan%20(2013)&amp;language=en</url>
20:31:37 T:2691687488 DEBUG: CurlFile::Open(0x41fc310) http://thetvdb.com/api/GetSeries.php?ser...anguage=en
20:31:37 T:2691687488 INFO: easy_aquire - Created session to http://thetvdb.com
20:31:38 T:2691687488 DEBUG: Get: Using "UTF-8" charset for XML "http://thetvdb.com/api/GetSeries.php?seriesname=Attack%20on%20Titan%20(2013)&language=en"
20:31:38 T:2691687488 DEBUG: scraper: GetSearchResults returned <?xml version="1.0" encoding="utf-8" standalone="yes"?><results></results>
20:31:38 T:2691687488 DEBUG: FindMovie: Searching for 'Attack on Titan' using The TVDB scraper (path: '/home/pi/.kodi/addons/metadata.tvdb.com', content: 'tvshows', version: '1.7.1')
20:31:38 T:2691687488 DEBUG: scraper: CreateSearchUrl returned <url cache="cache-Attack%20on%20Titan%20(2013)-en.xml">http://thetvdb.com/api/GetSeries.php?seriesname=Attack%20on%20Titan%20(2013)&amp;language=en</url>
20:31:38 T:2691687488 DEBUG: scraper: GetSearchResults returned <?xml version="1.0" encoding="utf-8" standalone="yes"?><results></results>
20:31:38 T:2691687488 WARNING: No information found for item 'nfs://.../Attack on Titan [2013][1080p][jp][en-sub]/', it won't be added to the library.
20:31:38 T:2691687488 DEBUG: VideoInfoScanner: No (new) information was found in dir nfs://.../Attack on Titan [2013][1080p][jp][en-sub]/

So I played a bit with thetvdb.com and found out that http://thetvdb.com/api/GetSeries.php?ser...anguage=en indeed returns nothing while http://thetvdb.com/api/GetSeries.php?ser...anguage=en actually yields a successful result.
Basically I see that thetvdb.com doesn't find anything when the year is specified unless it's Castle (2009).

I realize that the issue is probably more with thetvdb.com for not returning anything in this case. However, it would be nice if Kodi could try the url without the year if the uri with the year fails.
Any thoughts on how to work around the problem would be appreciated.
This is a common issue. TheTVDB only supports years when there are multiple version of the show (like eg remakes).

I will discuss https://github.com/mkortstiege/xbmc/comm...d42f53b089 with the others and check whether or not we want to include it. Another possible solution would be to not add the year when building CreateSearchUrl in the tvdb scraper. I'll keep you posted.