diff --git a/server/lib/scanners/plex/index.ts b/server/lib/scanners/plex/index.ts index 24862e55..b464008e 100644 --- a/server/lib/scanners/plex/index.ts +++ b/server/lib/scanners/plex/index.ts @@ -430,6 +430,13 @@ class PlexScanner mediaIds.tmdbId = tmdbMedia.id; } + if (mediaIds.tvdbId && !mediaIds.tmdbId) { + const show = await this.tmdb.getShowByTvdbId({ + tvdbId: mediaIds.tvdbId, + }); + mediaIds.tmdbId = show.id; + } + // Cache GUIDs guidCache.data.set(plexitem.ratingKey, mediaIds);