fix output filename template

This commit is contained in:
Tomáš Mládek 2019-05-01 10:50:51 +02:00 committed by Tomáš Mládek
parent e7ad85fac9
commit c17b3df3f5

View file

@ -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'