mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-12-02 00:46:27 +08:00
A single media library read failure made the whole season look missing:
Jellyfin/Emby get_tv_episodes returns (None, None) on failure and
(None, {}) when not found, but media_exists merged both into None, so
get_no_exists_info wrote a whole-season missing marker and the subscribe
chain re-downloaded episodes that were already archived.
Distinguish the two cases with MediaServerQueryError and an opt-in
raise_on_query_failure flag (default off, TV only): the strict path
raises through run_module_strict instead of being swallowed by lenient
dispatch, and the four subscribe entries skip the round without writing
missing state. Plex cannot distinguish failure from not-found and stays
unchanged; movie/music services are unaffected.
Closes #7444