From d3799d7660c0d0463be5b12eea4963c53c3ff9ce Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Sun, 13 May 2018 01:45:40 +0200 Subject: [PATCH] rtmp: generate correct filename --- lib/svtplay_dl/fetcher/rtmp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/svtplay_dl/fetcher/rtmp.py b/lib/svtplay_dl/fetcher/rtmp.py index 9dead62..8b2912c 100644 --- a/lib/svtplay_dl/fetcher/rtmp.py +++ b/lib/svtplay_dl/fetcher/rtmp.py @@ -6,7 +6,7 @@ import shlex from svtplay_dl.log import log from svtplay_dl.fetcher import VideoRetriever -from svtplay_dl.utils.output import output +from svtplay_dl.utils.output import output, formatname class RTMP(VideoRetriever): @@ -26,8 +26,8 @@ class RTMP(VideoRetriever): file_d = output(self.output, self.config, "flv", False) if file_d is None: return - args += ["-o", self.output] - if self.options.silent: + args += ["-o", formatname(self.output, self.config, "flv")] + if self.config.get("silent"): args.append("-q") if self.kwargs.get("other"): args += shlex.split(self.kwargs.pop("other"))