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'