diff --git a/youtubedownloader/youtubedownloader.py b/youtubedownloader/youtubedownloader.py index bebd916..6bbc658 100644 --- a/youtubedownloader/youtubedownloader.py +++ b/youtubedownloader/youtubedownloader.py @@ -72,13 +72,13 @@ class YouTubeDownloader(commands.Cog): filename_format = filename + ".m4a" else: stream = yt.streams.filter(progressive=True, mime_type='video/mp4') - stream = stream.order_by('res') + stream = stream.order_by('resolution') filename_format = filename + ".mp4" if os.path.isfile(path + f"{os.sep}{filename_format}"): previously_existed = True else: previously_existed = False - return stream.first().download(filename=filename, output_path=path), previously_existed, filename_format + return stream.desc().first().download(filename=filename, output_path=path), previously_existed, filename_format data_path = await self.config.save_directory() if subfolder and await self.bot.is_owner(ctx.author): data_path = os.path.join(data_path, subfolder)