fix(youtubedownloader): fixed kwargs in youtube_download method
Some checks failed
Pylint / Pylint (3.10) (push) Failing after 54s

This commit is contained in:
Seaswimmer 2023-10-24 00:16:28 -04:00
parent c760592404
commit ff000db8fc
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -67,11 +67,11 @@ class YouTubeDownloader(commands.Cog):
yt = YouTube(url=url)
filename = f"{yt.title} ({yt.video_id})"
if audio_only:
yt.streams.filter(progressive=True, only_audio=True, format='m4a')
yt.streams.filter(progressive=True, only_audio=True, file_extension='m4a')
yt.streams.order_by('abr')
filename_format = filename + ".m4a"
else:
yt.streams.filter(progressive=True, format="mp4")
yt.streams.filter(progressive=True, file_extension="mp4")
yt.streams.order_by('resolution')
filename_format = filename + ".mp4"
if os.path.isfile(path + f"{os.sep}{filename_format}"):