From 193edae667414fad08a9cac3704b5b5ede30bc93 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Tue, 8 May 2018 22:52:00 +0200 Subject: [PATCH] mtvnn: send other as a argument instead of using options --- lib/svtplay_dl/service/mtvnn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/svtplay_dl/service/mtvnn.py b/lib/svtplay_dl/service/mtvnn.py index 052d661..685cf3c 100644 --- a/lib/svtplay_dl/service/mtvnn.py +++ b/lib/svtplay_dl/service/mtvnn.py @@ -70,7 +70,7 @@ class Mtvnn(Service, OpenGraphThumbMixin): self.output["title"] = title swfurl = mediagen.find("{http://search.yahoo.com/mrss/}player").attrib["url"] - self.options.other = "-W {0}".format(self.http.check_redirect(swfurl)) + other = "-W {0}".format(self.http.check_redirect(swfurl)) contenturl = mediagen.find("{http://search.yahoo.com/mrss/}content").attrib["url"] content = self.http.request("get", contenturl).content @@ -79,7 +79,7 @@ class Mtvnn(Service, OpenGraphThumbMixin): sa = list(ss.iter("rendition")) for i in sa: - yield RTMP(self.config, i.find("src").text, i.attrib["bitrate"]) + yield RTMP(self.config, i.find("src").text, i.attrib["bitrate"], other=other) match = re.search("gon.viacom_config=([^;]+);", self.get_urldata()) if match: