feat(playlist): clean up selected inactive desktop sources (#1593) (#1596)

This commit is contained in:
4gray authored and GitHub committed 2026-09-13 10:39:14 +02:00
1 parent cbc918b096
commit bd848aaad6
53 files changed
+1980 -87

No files matched your search

+12
View File
@@ -1961,3 +1961,15 @@ account expiry/disablement is distinct from failed authorization or network
checks. Stalker probes reuse session ownership without endpoint repair; M3U
reads stop at 64 KiB. PWA retains existing Xtream behavior. Contract:
`docs/architecture/m3u-playlist-module.md` (Desktop source health).
Desktop Sources also offers library-wide selective cleanup through dialog-scoped
`SourceCleanupService`. Only confirmed expired/disabled accounts are preselected;
playback/import/refresh/delete-busy sources are skipped. Deletion goes through
one serialized `PlaylistsService` operation and awaited cleanup hooks;
`PlaylistActions.playlistRemovalCommitted` updates state without another DB
delete. Stop finishes the current source. Same contract: Desktop inactive-source
cleanup in `docs/architecture/m3u-playlist-module.md`.
Startup source auto-refresh uses `SourceActivityService` to protect busy IDs
from cleanup. Late batch refreshes skip deleted rows instead of recreating them.
Contract: `docs/architecture/m3u-playlist-module.md` (Desktop inactive-source cleanup).