thetvdb / v4-api

Founded in 2006, TheTVDB is one of the longest-running community-driven TV and Movie databases. With content metadata across hundreds of thousands of TV series and movies, TheTVDB powers many of the largest media centers in the market. Developers across the world build and rely upon TheTVDB's APIs to power their apps, utilities, and projects, generating millions of API calls per day. In our GitHub repository you will find all of the necessary support and v4 API documentation to make use of TheTVDB's metadata. Come and join us!
135 stars 13 forks source link

NextAired in series/400879/nextAired is different to series/400879/extended?meta=translations&short=true #301

Closed arithon55 closed 1 year ago

arithon55 commented 1 year ago

The nextAired value in series extended is 2023-07-03 instead of 2023-07-05 in the other requests such as series/{id}/nextAired. Other series with different ids return the correct matching values for nextAired.

series/400879/nextAired "id": 400879, "name": "The Cook Up with Adam Liaw", "slug": "the-cook-up-with-adam-liaw", "image": "https://artworks.thetvdb.com/banners/v4/series/400879/posters/6072a84193f9e.jpg", "nameTranslations": [ "eng" ], "overviewTranslations": [ "eng" ], "aliases": [], "firstAired": "2021-04-19", "lastAired": "2023-07-14", "nextAired": "2023-07-05", "score": 12, "status": { "id": 1, "name": "Continuing", "recordType": "series", "keepUpdated": true }, "originalCountry": "aus", "originalLanguage": "eng", "defaultSeasonType": 1, "isOrderRandomized": false, "lastUpdated": "2023-07-03 23:39:59",

series/400879/extended?meta=translations&short=true "id": 400879, "name": "The Cook Up with Adam Liaw", "slug": "the-cook-up-with-adam-liaw", "image": "https://artworks.thetvdb.com/banners/v4/series/400879/posters/6072a84193f9e.jpg", "nameTranslations": [ "eng" ], "overviewTranslations": [ "eng" ], "aliases": [], "firstAired": "2021-04-19", "lastAired": "2023-07-14", "nextAired": "2023-07-03", "score": 12, "status": { "id": 1, "name": "Continuing", "recordType": "series", "keepUpdated": true }, "originalCountry": "aus", "originalLanguage": "eng", "defaultSeasonType": 1, "isOrderRandomized": false, "lastUpdated": "2023-07-03 23:39:59",

antheaezzell commented 1 year ago

@arithon55 I have ticketed this for investigation.

Jira ticket for our internal reference - https://whipmedia.atlassian.net/browse/TVD-3789

maxifwortman commented 1 year ago

Hi @arithon55, this is not an issue, the correct info is in series/{id}/nextAired. This is the endpoint you should use for obtaining the next aired date for a series. The field in the extended endpoint is deprecated and is only maintained for backward compatibility. Thanks for reaching out!

arithon55 commented 1 year ago

@maxifwortman Thanks for that. Please update the Swagger UI documentation with the deprecated fields and also mention that the extended record Next Aired is deprecated.