fix: DB sur volume persistant + verrou anti-scrapes parallèles
Docker / docker (push) Successful in 3m1s
Docker / docker (push) Successful in 3m1s
- DB_PATH → data/arte_dl.db (mappé sur /mnt/user/appdata/arte-dl) - mkdir data/ au démarrage dans downloader.py et arte_api.py - asyncio.Lock sur get_all_concerts() : une seule scrape à la fois, les requêtes concurrentes attendent le résultat au lieu de relancer Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+3
-1
@@ -11,7 +11,9 @@ import yt_dlp
|
||||
from fastapi import BackgroundTasks
|
||||
|
||||
OUTPUT_DIR = "/data/Arte"
|
||||
DB_PATH = "arte_dl.db"
|
||||
DB_PATH = "data/arte_dl.db"
|
||||
|
||||
Path("data").mkdir(exist_ok=True)
|
||||
|
||||
|
||||
def _db():
|
||||
|
||||
Reference in New Issue
Block a user