From 2027b80fb6a698eae614a4576bcb0b208f81337e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Thu, 23 May 2019 23:37:08 +0200 Subject: [PATCH] do NOT sanitize ytdl filename; this breaks tagging and moving --- delojza.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/delojza.py b/delojza.py index 004d42b..57291de 100755 --- a/delojza.py +++ b/delojza.py @@ -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"):