Fix not taking into account outs.outtmpl
authorRicardo Garcia <sarbalap+freshmeat@gmail.com>
Tue, 22 Jul 2008 09:00:38 +0000 (11:00 +0200)
committerRicardo Garcia <devnull@localhost>
Tue, 22 Jul 2008 09:00:38 +0000 (11:00 +0200)
youtube-dl

index 7d37586..814e1b6 100755 (executable)
@@ -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'),
                        })