Repository navigation
Resolve current items before catch-up probing - #2
Open
natedogg058 wants to merge 1 commit into
Open
natedogg058 wants to merge 1 commit into
natedogg058 wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
Summary
BaseIteminstances in catch-up modeSelectedLibraryIdsthroughAncestorIds, matching scheduled-mode filteringItemAddedcan fire before a scan has finished populating episode hierarchy. Persisting that original object after probing can overwrite newerSeriesId,SeasonId, episode numbering, and related hierarchy fields. Re-resolving by ID immediately before probing avoids persisting stale scan state.Related issue: firestaerter3#4
Validation
The equivalent correction was previously validated on Jellyfin 12.1 with 54 plugin tests and two live catch-up batches totaling 30 episodes. All episode hierarchy was preserved through restart/rescan. Two independent 60-second remote probe timeouts remained, so this PR does not claim to solve probe-timeout reliability.
This branch also adds six focused unit regressions covering the corrected queue lifecycle.