fix: resume interrupted downloads after container restart
Docker / docker (push) Successful in 1m22s

Store subtitle/year/category in downloads table. On startup, re-queue
any download still in queued/downloading state (reset downloading → queued).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
dev
2026-05-11 14:03:31 +02:00
parent ec61b1684a
commit 09457868e4
2 changed files with 33 additions and 2 deletions
+1
View File
@@ -52,6 +52,7 @@ async def _auto_dl_loop():
@asynccontextmanager
async def lifespan(app: FastAPI):
await dm.resume_pending()
tasks = [
asyncio.create_task(dm.start_worker()),
asyncio.create_task(_auto_dl_loop()),