projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae2e6e4
)
Fix not taking into account outs.outtmpl
author
Ricardo Garcia
<sarbalap+freshmeat@gmail.com>
Tue, 22 Jul 2008 09:00:38 +0000
(11:00 +0200)
committer
Ricardo Garcia
<devnull@localhost>
Tue, 22 Jul 2008 09:00:38 +0000
(11:00 +0200)
youtube-dl
patch
|
blob
|
history
diff --git
a/youtube-dl
b/youtube-dl
index 7d3758654c55b4926e8a931fe15685c546689b30..814e1b68b33ff285efba820ee4a34313b4593a88 100755
(executable)
--- 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'),
})