Забыл поменять с GET на POST в video_size func
This commit is contained in:
@@ -17,6 +17,6 @@ async def download_video(data: DownloadRequest):
|
||||
async def video_resolutions(url: str):
|
||||
return {"resolutions": YouTubeService.resolutions(url)}
|
||||
|
||||
@router.get("/size")
|
||||
@router.post("/size")
|
||||
async def video_size(data: DownloadRequest) -> dict[str, int]:
|
||||
return {"size": YouTubeService.filesize(data)}
|
||||
|
||||
Reference in New Issue
Block a user