cleanup: cleaned up some useless code

This commit is contained in:
Seaswimmer 2023-08-01 00:07:30 -04:00
parent c8f52c12f7
commit a646bf129e
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -55,9 +55,7 @@ class MusicDownloader(commands.Cog):
'paths': {'home': path}
}
with YoutubeDL(ydl_opts) as ydl:
error_code = ydl.download(url)
with YoutubeDL(ydl_opts) as ydl:
info = ydl.extract_info(url=url, download=False)
info = ydl.extract_info(url=url, download=True)
title = info['title']
return title
data_path = await self.config.save_directory()