feat: téléchargement dans sous-dossiers par catégorie
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -55,13 +55,14 @@ class DownloadRequest(BaseModel):
|
||||
title: str
|
||||
subtitle: str = ""
|
||||
year: int | None = None
|
||||
category: str = ""
|
||||
|
||||
|
||||
@app.post("/api/download")
|
||||
async def api_download(req: DownloadRequest, bg: BackgroundTasks):
|
||||
if not req.url:
|
||||
raise HTTPException(status_code=400, detail="url required")
|
||||
dl_id = dm.enqueue(req.url, req.title, req.subtitle, req.year, bg)
|
||||
dl_id = dm.enqueue(req.url, req.title, req.subtitle, req.year, req.category, bg)
|
||||
return {"id": dl_id}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user