fix(plex-scanner): add TVDb to TMDB fallback in plex scanner (#2537)

This commit is contained in:
fallenbagel
2026-02-21 02:48:52 +05:00
committed by GitHub
parent a0d0eb1858
commit 7c60a5c3c5

View File

@@ -430,6 +430,13 @@ class PlexScanner
mediaIds.tmdbId = tmdbMedia.id; mediaIds.tmdbId = tmdbMedia.id;
} }
if (mediaIds.tvdbId && !mediaIds.tmdbId) {
const show = await this.tmdb.getShowByTvdbId({
tvdbId: mediaIds.tvdbId,
});
mediaIds.tmdbId = show.id;
}
// Cache GUIDs // Cache GUIDs
guidCache.data.set(plexitem.ratingKey, mediaIds); guidCache.data.set(plexitem.ratingKey, mediaIds);