mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-16 14:27:53 +00:00
Fix not taking into account outs.outtmpl
This commit is contained in:
parent
ae2e6e461c
commit
e8e20c76f2
@ -519,7 +519,8 @@ if __name__ == '__main__':
|
|||||||
'forcetitle': opts.gettitle,
|
'forcetitle': opts.gettitle,
|
||||||
'simulate': (opts.simulate or opts.geturl or opts.gettitle),
|
'simulate': (opts.simulate or opts.geturl or opts.gettitle),
|
||||||
'format': opts.format,
|
'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 (opts.useliteral and '%(title)s-%(id)s.%(ext)s')
|
||||||
or '%(id)s.%(ext)s'),
|
or '%(id)s.%(ext)s'),
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user