Забыл перевести HttpUrl в str
This commit is contained in:
@@ -43,7 +43,7 @@ class YouTubeService:
|
||||
@staticmethod
|
||||
def filesize(data: DownloadRequest):
|
||||
from app.utils.youtubeV2 import YtDlpManager
|
||||
manager = YtDlpManager((data.url))
|
||||
manager = YtDlpManager(str(data.url))
|
||||
video_size = manager.best_video(data.quality).filesize
|
||||
audio_size = manager.best_audio().filesize
|
||||
return video_size + audio_size
|
||||
|
||||
Reference in New Issue
Block a user