fix: use worker_tasks list instead of non-existent worker_task attribute

This commit is contained in:
2026-03-14 09:33:32 +01:00
parent 0ec120e08f
commit 94720f2d61
2 changed files with 5 additions and 4 deletions

View File

@@ -834,9 +834,9 @@ async def add_series(
# Step F: Scan missing episodes immediately if background loader is not running
# Uses existing SerieScanner and AnimeService sync to avoid duplicates
try:
loader_running = (
background_loader.worker_task is not None
and not background_loader.worker_task.done()
loader_running = bool(
background_loader.worker_tasks
and any(not t.done() for t in background_loader.worker_tasks)
)
if (
not loader_running