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.
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: 1009
Joined: Tue Feb 26, 2019 12:01 pm

Mon Dec 02, 2019 3:00 pm

This is a bug. It has been ticketed.
ChristyEzzell
Posts: 1009
Joined: Tue Feb 26, 2019 12:01 pm

Tue Jan 07, 2020 10:51 am

Pistori34 wrote:
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
We're still looking at the logic in this ticket, but the reason why this specific series is not returning the Italian is that it is lacking an Italian overview even though it has an Italian title. That's why it's returning English.
lochy
Posts: 2
Joined: Tue Jan 07, 2020 1:51 am

Tue Jan 07, 2020 9:28 pm

This looks to be the same issue more or less as the one I posted yesterday.
Are you saying we can't return just other language titles even without the rest of that info?
br0k3
Posts: 14
Joined: Mon May 14, 2018 2:40 am

Wed Jan 08, 2020 2:59 pm

Will this be fixed soon? It's still not possible to know whether you received the correct language you requested or the fallback language. Before the upgrade there was an error if you requested a language for a series who is not available. Now you get a response with the requested language but this is no guarantee if it's really the language. :/
emilyhelwig
Posts: 230
Joined: Mon Sep 09, 2019 10:14 am

Thu Jan 09, 2020 5:27 pm

I believe a fix for this was pushed out late last night. Please let me know if you still end up seeing this issue.
br0k3
Posts: 14
Joined: Mon May 14, 2018 2:40 am

Fri Jan 10, 2020 7:52 am

It's the same as before.

Code: Select all

curl -X GET --header 'Accept: application/json' --header 'Accept-Language: de' --header 'Authorization: Bearer token_here' 'https://api.thetvdb.com/series/375207'

Code: Select all

{
  "data": {
    "id": 375207,
    "seriesId": "",
    "seriesName": "Veganville",
    "aliases": [],
    "season": "1",
    "poster": "series/375207/posters/62043851.jpg",
    "banner": "",
    "fanart": "",
    "status": "Continuing",
    "firstAired": "2020-01-01",
    "network": "BBC Three",
    "networkId": "40",
    "runtime": "40",
    "language": "de",
    "genre": [
      "Documentary",
      "Food"
    ],
    "overview": "Veganville sees a group of vegans head to the heart of south Wales to try to convert local meat eaters to a plant-based lifestyle, challenging views on both sides of the debate in the process. \r\n\r\nMeat and dairy consumption is ingrained in local culture across the UK, and Merthyr Tydfil, a town surrounded by hills and farmland, is home to many who depend on animal agriculture for employment and nutrition. \r\n\r\nBut with veganism making its way into the mainstream, the series explores what motivates those who choose a plant-based lifestyle, and those who don’t, as a group of vegans tries to convince the tight-knit community of Merthyr to go meatless. \r\n\r\nThe vegans include full-time animal rights activist Joey, Miami bodybuilder Korin, single mum Jodi, foodie Rikki and truck driver Dan. Each has a different attitude towards giving up animal products, leading to tensions when it comes to the methods used for spreading the word about veganism. ",
    "lastUpdated": 1578477470,
    "airsDayOfWeek": "",
    "airsTime": "12:00 AM",
    "rating": "TV-G",
    "imdbId": "",
    "zap2itId": "",
    "added": "2020-01-08 04:41:12",
    "addedBy": 48458,
    "siteRating": 0,
    "siteRatingCount": 0,
    "slug": "veganville"
  }
}
I requested german language and got english instead. But the language in the response is still stated as "de" and this is wrong.
emilyhelwig
Posts: 230
Joined: Mon Sep 09, 2019 10:14 am

Mon Jan 13, 2020 5:49 pm

Status Update: This ticket has been released on 1/8. Thanks for your patience as we work to get through all remaining issues.
Post Reply