This commit is contained in:
Mateusz Gruszczyński
2026-05-07 22:40:03 +02:00
parent de7f9451b1
commit 10d25b88b1
7 changed files with 92 additions and 71 deletions

View File

@@ -73,8 +73,8 @@ def register_socketio_handlers(socketio):
result = smart_queue.check(profile, force=False)
if result.get("enabled"):
_emit_profile(socketio, "smart_queue_update", result, pid)
if result.get("paused") or result.get("resumed") or result.get("resume_requested"):
# Note: After Smart Queue changes, refresh cache immediately so the Downloading list does not wait for the next poller cycle.
if result.get("stopped") or result.get("started") or result.get("start_requested") or result.get("paused") or result.get("resumed"):
# Note: Note: After Smart Queue STOP/START changes, refresh cache immediately so the Downloading list does not wait for the next poller cycle.
queue_diff = torrent_cache.refresh(profile)
if queue_diff.get("ok"):
_emit_profile(socketio, "torrent_patch", {**queue_diff, "summary": cached_summary(pid, torrent_cache.snapshot(pid), force=True)}, pid)