Files
MoviePilot/app/modules/_base
Huyvux12 ea4d3cadac fix(subscribe): do not treat media library query failure as missing episodes
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
2026-11-17 22:49:15 +00:00
..