фикс func video_size
This commit is contained in:
@@ -18,5 +18,5 @@ async def video_resolutions(url: str):
|
||||
return {"resolutions": YouTubeService.resolutions(url)}
|
||||
|
||||
@router.get("/size")
|
||||
async def video_size(data: DownloadRequest):
|
||||
async def video_size(data: DownloadRequest) -> dict[str, int]:
|
||||
return {"size": YouTubeService.filesize(data)}
|
||||
|
||||
Reference in New Issue
Block a user