fix: DB sur volume persistant + verrou anti-scrapes parallèles
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:
dev
2026-05-02 20:43:01 +02:00
parent d729334c9b
commit a4ffd6d63e
3 changed files with 30 additions and 10 deletions
+3 -1
View File
@@ -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():