do NOT sanitize ytdl filename; this breaks tagging and moving

This commit is contained in:
Tomáš Mládek 2019-05-23 23:37:08 +02:00
parent 71a5fd3522
commit 2027b80fb6

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"):