Browse Source

Fix not taking into account outs.outtmpl

master
Ricardo Garcia 16 years ago
committed by Ricardo Garcia
parent
commit
e8e20c76f2
1 changed files with 2 additions and 1 deletions
  1. 3
      youtube-dl

3
youtube-dl

@ -519,7 +519,8 @@ if __name__ == '__main__':
'forcetitle': opts.gettitle,
'simulate': (opts.simulate or opts.geturl or opts.gettitle),
'format': opts.format,
'outtmpl': ((opts.usetitle and '%(stitle)s-%(id)s.%(ext)s')
'outtmpl': ((opts.outtmpl is not None and opts.outtmpl)
or (opts.usetitle and '%(stitle)s-%(id)s.%(ext)s')
or (opts.useliteral and '%(title)s-%(id)s.%(ext)s')
or '%(id)s.%(ext)s'),
})

Loading…
Cancel
Save