diff --git a/app/main.py b/app/main.py index 776892b..37be4b2 100644 --- a/app/main.py +++ b/app/main.py @@ -30,11 +30,11 @@ async def dropoutSeries(): return JSONResponse(content=data) return JSONResponse(content={"error": "File not found"}, status_code=404) -@app.get("/dropoutDownload") +@app.post("/dropoutDownload") async def dropoutDownload(show: str, season: str, episode: str = None): download.dropout.show(show,season,episode) -@app.get("/ydl") +@app.post("/ydl") async def ydl(url: str, location: str): download.youtube.ydl(url,location)