cleanup: cleaned up some useless code
This commit is contained in:
parent
c8f52c12f7
commit
a646bf129e
1 changed files with 1 additions and 3 deletions
|
@ -55,9 +55,7 @@ class MusicDownloader(commands.Cog):
|
||||||
'paths': {'home': path}
|
'paths': {'home': path}
|
||||||
}
|
}
|
||||||
with YoutubeDL(ydl_opts) as ydl:
|
with YoutubeDL(ydl_opts) as ydl:
|
||||||
error_code = ydl.download(url)
|
info = ydl.extract_info(url=url, download=True)
|
||||||
with YoutubeDL(ydl_opts) as ydl:
|
|
||||||
info = ydl.extract_info(url=url, download=False)
|
|
||||||
title = info['title']
|
title = info['title']
|
||||||
return title
|
return title
|
||||||
data_path = await self.config.save_directory()
|
data_path = await self.config.save_directory()
|
||||||
|
|
Loading…
Reference in a new issue