Scarpetta - duplicate tvdb ids

FYI… this show Scarpetta tmdb / Scarpetta tvdb has duplicate tvdb ids within plex …

Scarpetta (2026)
  plex://show/656ba4bb066fe29e173246fe
  imdb://tt14786934
  tmdb://240740
  tvdb://430868
  tvdb://464253

… which will most likely mean anyone using the tvdb episode ordering will be missing metadata as the first id on the list is now removed and the second one is correct.

The id was updated back in december at tmdb so plex has not picked up the change and needs to be manually cleaned up.

How can I override it to pull the correct tvdb id?

You can’t, plex needs to clean it up.

You could try `Scarpetta (2026) {tvdb-464253} which should match at a show level but I suspect the tvdb episode ordering will not work and it’ll be blank. I just just use tmdb as that works.

I wonder if this is something that could be automated. If a series has multiple TVDB IDs, issue a https://api4.thetvdb.com/v4/series/<<ID>> query; if you get a 404, consider the ID dead and remove it from the database.

This could be done for all series, but that might be a bit much considering most series contain valid TVDB IDs. But in the case where there are multiple TVDB IDs, it seems likely one or more of them would be obsolete.