TVDB addon should find series with names in languages differing from setting

Let’s say you have chosen English as the language of the TVDB scraper. And you include in your source a series with, say, a scandinavian name. The scraper will not find it, even if there is an entry for it on TVDB, with the consequence that some manual action is required to get the metadata fetched and get it added to the library. The reason it doesn’t find the show, is that the addon includes the chosen language in the URL parameters when doing the title based search, and unless that title is the name of the series in this chosen language, the TVDB api will produce no results.

Like this:

http://thetvdb.com/api/GetSeries.php?ser…anguage=en
http://thetvdb.com/api/GetSeries.php?ser…anguage=en

This is annoying when it happens, and it’s also unnecessary. Plex, for instance, will find the series even if the title is in another language, and still retrieve the metadata in the language chosen.

The fix should be simple:

When doing a title-based search, the addon should set language=all. Like so:

http://thetvdb.com/api/GetSeries.php?ser…nguage=all
http://thetvdb.com/api/GetSeries.php?ser…nguage=all

This will provide at least one hit on the title, which contains the seriesid, which can then be used to retrieve metadata-zips in the language chosen, just like elsewhere in the addon.