Update main.py

This commit is contained in:
TylerCG 2025-05-12 11:12:04 -04:00
parent 4f8ab2e773
commit d6f2378d6f

View File

@ -96,10 +96,13 @@ async def dropoutSeries():
@app.post("/dropout/download", description="Download an entire season from episode 1. Ignores behind the scenes and trailers.")
async def dropoutDownload(
request: Request,
background_tasks: BackgroundTasks,
show: str = Form(...),
season: int = Form(...)
):
data = await request.json()
logger.info(f"Parsed JSON Body: {json.dumps(data, indent=2)}")
try:
background_tasks.add_task(download.dropout.show,show,season,None)
# download.dropout.show(show,season,episode)