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

Series Episodes with Translation gives duplicate/stale data #290

Open antheaezzell opened 1 year ago

antheaezzell commented 1 year ago

Getting series episodes for season type "official" with language "eng" returns a duplicated episode with different name and overview info. It appears the data is stale or something.

The web-ui shows it correctly.

Getting the series episodes without the translation modifier does not have this issue.

Failing query:

https://api4.thetvdb.com/v4/series/418185/episodes/official/eng

It returns the same episode id twice:

"episodes": [ { "id": 9657321, "seriesId": 418185, "name": "The Dog Pool", "aired": "2023-03-29", "runtime": 12, "nameTranslations": null, "overview": "Pool party! Pochita and his friends get all wet! However, getting on the scale causes some aquatic anxiety - ruh roh!", "overviewTranslations": null, "image": "/banners/v4/episode/9657321/screencap/64076412ed50f.jpg", "imageType": 11, "isMovie": 0, "seasons": null, "number": 1, "seasonNumber": 0, "lastUpdated": "2023-04-25 19:07:24", "finaleType": null, "airsAfterSeason": 1, "year": "2023" }, { "id": 9657321, "seriesId": 418185, "name": "Dog Pool", "aired": "2023-03-29", "runtime": 12, "nameTranslations": null, "overview": "OVA included with Blu-ray Box Set 1", "overviewTranslations": null, "image": "/banners/v4/episode/9657321/screencap/64076412ed50f.jpg", "imageType": 11, "isMovie": 0, "seasons": null, "number": 1, "seasonNumber": 0, "lastUpdated": "2023-04-25 19:07:24", "finaleType": null, "airsAfterSeason": 1, "year": "2023" }

See osTicket link - https://support.thetvdb.com/scp/tickets.php?id=20487

antheaezzell commented 1 year ago

Internal ticket - https://mediamorph.atlassian.net/browse/TVD-3712 see link to support site for communication

jmichael2497 commented 1 year ago

(edit: looks like these 2 apps use outdated API)

i wonder if this is related, but just noticed today manual refresh of a season starting up today ended up with quadrupled episodes in app (everything still all in english).

testing some mini series in open source android apps DroidShows and Episodes (before recent v16 switch to TMDB) found:

antheaezzell commented 1 year ago

Do you have a screenshot of those apps to see the issue? I tested the data on those shows and they don't have any unassigned episodes or orders that are new and aren't supported by the older APIs, so I'm not sure what the bug would be @jmichael2497

jmichael2497 commented 1 year ago

(edit:nvm, still broken, after full refresh for example broke Rick and Morty by deleting s1,4,5, and Simpsons nothing after s30.)

the two apps i learned about through F-Droid (so are their automated builds) and were apparently using TVDB v1 API.

spot test of WandaVision today now restored the missing earlier episodes, yay!

(after updated another series in DroidShows that got many prior seasons deleted in refresh a few days after initial issue... they all came back today, curiously retaining watched status dates, unlike with WandaVision, but with latest season and extras quadrupled again, however Episodes app seems to scrub duplicates.)

antheaezzell commented 1 year ago

I'm not going to be able to be much help on the v1 API. This is an unsupported API that we are going to deprecate soon. I would urge the developers to upgrade to v4. The data will be much better.

jmichael2497 commented 1 year ago

no worries, thanks for looking, as mentioned since current maintainer won't be migrating to modern TVDB api, there is already a mostly complete fork switched to TMDB (i was just hoping for more time while they squashed last few bugs and design quirks).

lolaoliv commented 1 year ago

boa noite.

cadastrei hoje uma serie chamada [Lorelay Fox] (https://thetvdb.com/series/lorelay-fox) e os episódios ficaram duplicados. Podem me ajudar por favor?

S2023E18 S2023E19 S2023E20 S2023E21 S2023E22 S2023E23 S2023E24 S2023E25 S2023E26 S2023E27 S2023E28 S2023E29 S2023E30 S2023E31 S2023E32 S2023E33 S2023E34 S2023E35 S2023E36 S2023E37 S2023E38 S2023E39 S2023E40 S2023E41 S2023E42

antheaezzell commented 1 year ago

@lolaoliv the episodes should be cleaned up.