GET /series/{id} returning title with "en" title instead of the specified lang

A place for developers to advertise their TheTVDB.com enabled app and get help from other developers with the API.
Post Reply
Pistori34
Posts: 175
Joined: Wed Mar 09, 2016 5:28 am

Sat Nov 23, 2019 4:18 am

Hi,

I am calling:

Code: Select all

GET /series/{id} 
with:

Code: Select all

curl -X GET --header 'Accept: application/json' --header 'Accept-Language: it' --header 'Authorization: Bearer [TOKEN] 'https://api.thetvdb.com/series/249882'
and the result is:

Code: Select all

{
  "data": {
    "id": 249882,
    "seriesId": "",
    "seriesName": "Awkward.",
    "aliases": [],
    "season": "5",
    "poster": "posters/249882-10.jpg",
    "banner": "graphical/249882-g2.jpg",
    "fanart": "fanart/original/249882-11.jpg",
    "status": "Ended",
    "firstAired": "2011-07-19",
    "network": "MTV",
    "networkId": "1325",
    "runtime": "25",
    "language": "it",
    "genre": [
      "Comedy",
      "Drama",
      "Romance"
    ],
    "overview": "\"Awkward\" takes an irreverent look at the conflict, chaos and humor that defines teenage life through the eyes of 15-year-old Jenna Hamilton (Ashley Rickards) whose life begins to change when a simple accident becomes an epic misunderstanding and is blown way out of proportion.\r\nNarrated in the first-person voice of Jenna's blog posts, \"Awkward.\" captures the humor within the struggles and experiences everyone can relate to from their formative years. The series picks up in the aftermath of the accident as she must deal with a new not-so-fun stigma, while at the same time managing the other daily drama that comes with being a teenager. From a secret relationship with a popular guy, to being undermined by a mean girl, and parents who just don't get it-Jenna's misfortune will eventually serve as the catalyst for amazing change, but it's not without some missteps and mishaps along the way.",
    "lastUpdated": 1567464146,
    "airsDayOfWeek": "Tuesday",
    "airsTime": "10:00 PM",
    "rating": "TV-14",
    "imdbId": "tt1663676",
    "zap2itId": "",
    "added": "2011-06-30 13:28:58",
    "addedBy": 16553,
    "siteRating": 0,
    "siteRatingCount": 0,
    "slug": "awkward"
  }
}
which contains all data from the "en" version of the series, but I asked for "it" and I know there are the info for italian, e.g. the title should be "Diario di una Nerd Superstar".

Is it a bug?

Thanks
Pistori34
Posts: 175
Joined: Wed Mar 09, 2016 5:28 am

Fri Nov 29, 2019 11:26 am

Hi,
any news on this?
Thanks
Pistori34
Posts: 175
Joined: Wed Mar 09, 2016 5:28 am

Mon Dec 02, 2019 11:35 am

The "249882" was edited and now it returns the italian title.

But same problem for another series:

Code: Select all

https://api.thetvdb.com/series/285318

with "Accept-Language: it" returns the english title:

Code: Select all

{
    "data": {
        "id": 285318,
        "seriesId": "",
        "seriesName": "Orange Road",
        "aliases": [],
        "season": "1",
        "poster": "",
        "banner": "",
        "fanart": "",
        "status": "Ended",
        "firstAired": "1987-04-06",
        "network": "NTV (JP)",
        "networkId": "162",
        "runtime": "",
        "language": "it",
        "genre": [
            "Animation"
        ],
        "overview": null,
        "lastUpdated": 1573554218,
        "airsDayOfWeek": "",
        "airsTime": "",
        "rating": null,
        "imdbId": "",
        "zap2itId": "",
        "added": "2014-08-28 07:55:17",
        "addedBy": 114846,
        "siteRating": 0,
        "siteRatingCount": 0,
        "slug": "285318"
    }
}
instead of the italian one: "È quasi magia Johnny".
ChristyEzzell
Posts: 896
Joined: Tue Feb 26, 2019 12:01 pm

Mon Dec 02, 2019 3:00 pm

This is a bug. It has been ticketed.
Post Reply