From 7c60a5c3c5209116506de6f590a6b0f428610871 Mon Sep 17 00:00:00 2001 From: fallenbagel <98979876+fallenbagel@users.noreply.github.com> Date: Sat, 21 Feb 2026 02:48:52 +0500 Subject: [PATCH] fix(plex-scanner): add TVDb to TMDB fallback in plex scanner (#2537) --- server/lib/scanners/plex/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) 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);