mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 12:15:40 +01:00
rtmp: we always get an .flv file not mp4
This commit is contained in:
parent
ed7f18b2af
commit
e0e75f5116
@ -20,11 +20,7 @@ def download_rtmp(options, url):
|
||||
extension = re.search(r"(\.[a-z0-9]+)$", url)
|
||||
if options.output != "-":
|
||||
if not extension:
|
||||
extension = re.search(r"-y (.+):[-_a-z0-9\/]", options.other)
|
||||
if not extension:
|
||||
options.output = "%s.flv" % options.output
|
||||
else:
|
||||
options.output = "%s.%s" % (options.output, extension.group(1))
|
||||
options.output = "%s.flv" % options.output
|
||||
else:
|
||||
options.output = options.output + extension.group(1)
|
||||
log.info("Outfile: %s", options.output)
|
||||
|
Loading…
Reference in New Issue
Block a user