mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 12:15:40 +01:00
rtmp: generate correct filename
This commit is contained in:
parent
55b07c1dfb
commit
d3799d7660
@ -6,7 +6,7 @@ import shlex
|
|||||||
|
|
||||||
from svtplay_dl.log import log
|
from svtplay_dl.log import log
|
||||||
from svtplay_dl.fetcher import VideoRetriever
|
from svtplay_dl.fetcher import VideoRetriever
|
||||||
from svtplay_dl.utils.output import output
|
from svtplay_dl.utils.output import output, formatname
|
||||||
|
|
||||||
|
|
||||||
class RTMP(VideoRetriever):
|
class RTMP(VideoRetriever):
|
||||||
@ -26,8 +26,8 @@ class RTMP(VideoRetriever):
|
|||||||
file_d = output(self.output, self.config, "flv", False)
|
file_d = output(self.output, self.config, "flv", False)
|
||||||
if file_d is None:
|
if file_d is None:
|
||||||
return
|
return
|
||||||
args += ["-o", self.output]
|
args += ["-o", formatname(self.output, self.config, "flv")]
|
||||||
if self.options.silent:
|
if self.config.get("silent"):
|
||||||
args.append("-q")
|
args.append("-q")
|
||||||
if self.kwargs.get("other"):
|
if self.kwargs.get("other"):
|
||||||
args += shlex.split(self.kwargs.pop("other"))
|
args += shlex.split(self.kwargs.pop("other"))
|
||||||
|
Loading…
Reference in New Issue
Block a user