Use season/episode TVDB IDs from path when available#239
Open
IDisposable wants to merge 1 commit into
Open
Conversation
When the Jellyfin core resolvers parse a provider ID from a folder or file name (e.g. `Season 1 [tvdbid-12345]`), the ID is now stored in the item's ProviderIds before metadata providers run. This change makes the TVDB plugin use those IDs directly rather than always requiring a full series lookup. - TvdbSeasonProvider: use season ID directly if present; only fall back to series lookup when no ID is available. Removes the IsAutomated re-fetch so that path-supplied IDs are always honoured (see PR notes). - TvdbEpisodeProvider: same pattern for episodes; removes IsAutomated re-fetch. - TvdbSeasonImageProvider: use season ID directly to skip the series fetch for the primary season; lazy-fetch the series only when needed for the official-order artwork fallback. - TvdbEpisodeImageProvider: use episode ID directly to skip the expensive GetEpisodeTvdbId series+number lookup. Note: removing the IsAutomated re-fetch means that changing a series' display order will no longer automatically update stored season IDs. Users would need to manually clear the TVDB ID from affected seasons to force re-discovery. This is an intentional trade-off to ensure path-supplied IDs are always respected.
517d647 to
228f7b3
Compare
Shadowghost
approved these changes
Mar 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When the Jellyfin core resolvers parse a provider ID from a folder or file name (e.g.
Season 1 [tvdbid-12345]), the ID is now stored in the item's ProviderIds before metadata providers run.This change makes the TVDB plugin use those stored IDs (which also can be changed in metadata edit) directly rather than always requiring a full series lookup.
TvdbSeasonProvider: use season ID directly if present; only fall back to series lookup when no ID is available. Removes the IsAutomated re-fetch so that path-supplied IDs are always honoured (see PR notes).
TvdbSeasonImageProvider: use season ID directly to skip the series fetch for the primary season; lazy-fetch the series only when needed for the official-order artwork fallback.
TvdbEpisodeProvider: same pattern for episodes; removes IsAutomated re-fetch.
TvdbEpisodeImageProvider: use episode ID directly to skip the expensive GetEpisodeTvdbId series+number lookup.
Note: removing the IsAutomated re-fetch means that changing a series' display order will no longer automatically update stored season IDs. Users would need to manually clear the TVDB ID from affected seasons to force re-discovery. This is an intentional trade-off to ensure path-supplied IDs are always respected.
This builds on the Main Jellyfin PR #16472