youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit e8e20c76f23e73c8f4f864667b03515ab5d7523f
parent ae2e6e461c4df66e85b973e7fb0c3b686581a4c6
Author: Ricardo Garcia <sarbalap+freshmeat@gmail.com>
Date:   Tue, 22 Jul 2008 11:00:38 +0200

Fix not taking into account outs.outtmpl

Diffstat:
Myoutube-dl | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/youtube-dl b/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'), })