Update main.py

This commit is contained in:
TylerCG 2025-04-26 00:39:39 -04:00
parent f6a1c98855
commit a7a74004c2

View File

@ -37,10 +37,9 @@ async def dropoutSeries():
async def dropoutDownload( async def dropoutDownload(
show: str = Form(...), show: str = Form(...),
season: int = Form(...), season: int = Form(...),
episode: Optional[int] = Form(None)
): ):
try: try:
await loop.run_in_executor(None, partial(download.dropout.show,show,season,episode)) await loop.run_in_executor(None, partial(download.dropout.show,show,season,episode=None))
# download.dropout.show(show,season,episode) # download.dropout.show(show,season,episode)
return JSONResponse(status_code=200, content={"status": "success", "message": "Series downloaded."}) return JSONResponse(status_code=200, content={"status": "success", "message": "Series downloaded."})
except Exception as e: except Exception as e: