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

Remoteid search with IMDB ID returns extra (seemingly) random data. #317

Open RealTrisT opened 6 months ago

RealTrisT commented 6 months ago

I've found a few IMDB IDs for which the /search/remoteid/{remoteId} endpoint returns seemingly unrelated/broken data along with the desired result. It still contains the series that is being searched for so it doesn't cause problems, but since IMDB IDs are supposedly unique (and there aren't even IDs for seasons) it seems like it could be a bug.

The first example returns a season of a different show, the second example returns the second season of the searched-for show, and the third example returns a "ghost" episode of the same show but with null number and null seasonNumber.


https://api4.thetvdb.com/v4/search/remoteid/tt2661044:

{
  "status": "success",
  "data": [
    {
      "season": {
        "id": 2011720,
        "seriesId": 363890,
        "type": {
          "id": 1,
          "name": "Aired Order",
          "type": "official",
          "alternateName": null
        },
        "number": 2,
        "nameTranslations": null,
        "overviewTranslations": null,
        "companies": {
          "studio": null,
          "network": null,
          "production": null,
          "distributor": null,
          "special_effects": null
        },
        "lastUpdated": "2022-07-28 03:20:25"
      }
    },
    {
      "series": {
        "id": 268592,
        "name": "The 100",
        "slug": "the-100",
        "image": "https://artworks.thetvdb.com/banners/posters/268592-2.jpg",

https://api4.thetvdb.com/v4/search/remoteid/tt2531336:

{
  "status": "success",
  "data": [
    {
      "season": {
        "id": 2059805,
        "seriesId": 375921,
        "type": {
          "id": 1,
          "name": "Aired Order",
          "type": "official",
          "alternateName": null
        },
        "name": "Partie 3",
        "number": 2,
        "nameTranslations": null,
        "overviewTranslations": null,
        "image": "/banners/v4/season/2059805/posters/651eac19bbb26.jpg",
        "imageType": 7,
        "companies": {
          "studio": null,
          "network": null,
          "production": null,
          "distributor": null,
          "special_effects": null
        },
        "lastUpdated": "2024-02-17 18:56:06"
      }
    },
    {
      "series": {
        "id": 375921,
        "name": "Lupin",
        "slug": "lupin",
        "image": "https://artworks.thetvdb.com/banners/series/375921/posters/5fc7be95790b4.jpg",

https://api4.thetvdb.com/v4/search/remoteid/tt6903284:

{
  "status": "success",
  "data": [
    {
      "episode": {
        "id": 6692604,
        "seriesId": 347648,
        "name": null,
        "aired": "2018-12-03",
        "runtime": null,
        "nameTranslations": null,
        "overview": null,
        "overviewTranslations": null,
        "image": null,
        "imageType": null,
        "isMovie": 0,
        "seasons": null,
        "number": null,
        "seasonNumber": null,
        "lastUpdated": "2023-07-23 10:30:04",
        "finaleType": null
      }
    },
    {
      "series": {
        "id": 347648,
        "name": "Nightflyers",
        "slug": "nightflyers",
        "image": "https://artworks.thetvdb.com/banners/posters/5c432ff760866.jpg",
antheaezzell commented 5 months ago

@RealTrisT I've ticketed this bug and we will look into it.

Internal ticket for our reference: https://whipmedia.atlassian.net/browse/CDP-2369