From c17b3df3f5146424e791f42ec5898fa4403fbe0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Wed, 1 May 2019 10:50:51 +0200 Subject: [PATCH] fix output filename template --- delojza.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/delojza.py b/delojza.py index 5b0aa45..b0e31e8 100755 --- a/delojza.py +++ b/delojza.py @@ -75,7 +75,7 @@ class DelojzaBot: ydl_opts = { 'noplaylist': True, 'restrictfilenames': True, - 'outtmpl': os.path.join(self.tmp_dir, datestr(date), '__%(title)s__%(id)s.%(ext)s') # HOW? + 'outtmpl': os.path.join(self.tmp_dir, '{}__%(title)s__%(id)s.%(ext)s'.format(datestr(date))) } if extract: ydl_opts['format'] = 'bestaudio'