do NOT sanitize ytdl filename; this breaks tagging and moving

feature-unify_handlers
Tomáš Mládek 2019-05-23 23:37:08 +02:00
parent 71a5fd3522
commit 2027b80fb6
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ class DelojzaBot:
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.download(urls)
for info in [ydl.extract_info(url, download=False) for url in urls]:
filename = self.sanitize(ydl.prepare_filename(info))
filename = ydl.prepare_filename(info)
globbeds = glob(os.path.splitext(filename)[0] + '.*')
for globbed in globbeds:
if globbed.endswith("mp3"):