Align future-release detection and fix gap hydration for movies - #57
Merged
Conversation
Make movie and TV future-release detection consistent across frontend and backend by removing the movie-only "no date means future" rule. When releaseDate is missing, both now fall back to year (and treat unparseable years as released), so reopened scan-history movie gaps from stripped/cold cache data are no longer hidden by default.
Hydration now builds a movie-id index from cached collection `parts` instead of relying on `_movie_collection_cache`. Missing gaps are not owned-library members, so they were never present in the old map and could not be rehydrated with poster/rating/genre/release data. This restores correct cache-based rehydration for saved gap entries.
Bump version to 2.9.1
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.
This pull request updates the application to version 2.9.1 and makes several improvements to the handling of "future release" logic for missing media titles. The changes ensure consistent behavior between the backend and frontend when determining if a movie or TV show is unreleased, and improve the way missing movie data is hydrated from the cache.
Version bump:
2.9.1inabout.pyand both environment files for frontend and backend. [1] [2] [3]Future release logic consistency:
_is_future_releasefunction inscan_history.pyto treat missing release dates the same for movies and TV shows, falling back to the year for both, and updated its usage accordingly. This matches the frontend logic and prevents movies with missing dates from always being considered unreleased. [1] [2]RecommendedComponentto match the backend logic for future release detection, using the year as a fallback for both movies and TV, and treating unparseable years as released.Cache hydration improvements:
_cached_movie_partmethod with a new_cached_parts_by_idmethod intmdb_service.pyto more efficiently index cached collection parts by movie ID, ensuring missing movies can be hydrated with display data if available in any cached collection.