API bug? Series with only French information not findable via api

A place for developers to advertise their TheTVDB.com enabled app and get help from other developers with the API.
Forum rules
This forum is now read-only. Support for TheTVDB.com is now available at https://support.thetvdb.com/
Posts: 2
Joined: Sun Dec 31, 2017 5:20 am

Sun Dec 31, 2017 5:52 am


there seem to be two problems with the /search/series api.

The series "Paris-Berlin, destins croisés" only has a French description, as can be seen under https://www.thetvdb.com/?string=Paris-B ... ion=Search

Trying to get this series using "Accept-Language: fr" returns the series' data in French, as expected.

Code: Select all

curl -X GET --header 'Accept: application/json' --header 'Accept-Language: fr' --header 'Authorization: bla' 'https://api.thetvdb.com/search/series?name=Paris-Berlin%2C%20destins%20crois%C3%A9s'
Removing "Accept-Language: fr" from the request (i.e. not sending Accept-Language at all) returns a 404, as if the series doesn't exist, even though the French data could be returned - we did not request a specific language after all, so why not return whatever's available?

Code: Select all

curl -X GET --header 'Accept: application/json' --header 'Authorization: bla' 'https://api.thetvdb.com/search/series?name=Paris-Berlin%2C%20destins%20crois%C3%A9s'
This works different for "Schwarz Rot Gold", a series with just a German description, https://www.thetvdb.com/?string=Schwarz ... ion=Search Here, requesting without Accept-Language returns the series' info in German.

Code: Select all

curl -X GET --header 'Accept: application/json' --header 'Authorization: bla' 'https://api.thetvdb.com/search/series?name=Schwarz%20Rot%20Gold'
Furthermore, requesting using Accept-Language does not work as described:
Records are returned with the Episode name and Overview in the desired language, if it exists. If there is no translation for the given language, then the record is still returned but with empty values for the translated fields.
Requesting Schwarz Rot Gold in a language different than German returns a 404.

Code: Select all

curl -X GET --header 'Accept: application/json' --header 'Accept-Language: fr' --header 'Authorization: bla' 'https://api.thetvdb.com/search/series?name=Schwarz%20Rot%20Gold'