diff --git a/lib/svtplay_dl/service/atg.py b/lib/svtplay_dl/service/atg.py index 3f79584..3c5d55c 100644 --- a/lib/svtplay_dl/service/atg.py +++ b/lib/svtplay_dl/service/atg.py @@ -41,4 +41,4 @@ class Atg(Service): stream = hlsparse(self.config, self.http.request("get", janson["urls"]["m3u"]), janson["urls"]["m3u"], output=self.output) for key in list(stream.keys()): - yield stream[key] + yield stream[key] diff --git a/lib/svtplay_dl/service/mtvnn.py b/lib/svtplay_dl/service/mtvnn.py index e364cac..bc634e2 100644 --- a/lib/svtplay_dl/service/mtvnn.py +++ b/lib/svtplay_dl/service/mtvnn.py @@ -141,7 +141,7 @@ class MtvMusic(Service, OpenGraphThumbMixin): hls_url = xml.find("./video").find("item").find("rendition").find("src").text stream = hlsparse(self.config, self.http.request("get", hls_url), hls_url, output=self.output) - if stream: + if stream: for key in list(stream.keys()): - yield stream[key] + yield stream[key] diff --git a/lib/svtplay_dl/service/picsearch.py b/lib/svtplay_dl/service/picsearch.py index d9c5ad8..4267e92 100644 --- a/lib/svtplay_dl/service/picsearch.py +++ b/lib/svtplay_dl/service/picsearch.py @@ -39,14 +39,14 @@ class Picsearch(Service, OpenGraphThumbMixin): self.config.set("live", jsondata["data"]["publishing_status"]["live"]) playlist = jsondata["data"]["streams"] for i in playlist: - if "application/x-mpegurl" in i: - streams = hlsparse(self.config, self.http.request("get", i["application/x-mpegurl"]), - i["application/x-mpegurl"], output=self.output) - if streams: - for n in list(streams.keys()): - yield streams[n] - if "video/mp4" in i: - yield HTTP(copy.copy(self.config), i["video/mp4"], 800, output=self.output) + if "application/x-mpegurl" in i: + streams = hlsparse(self.config, self.http.request("get", i["application/x-mpegurl"]), + i["application/x-mpegurl"], output=self.output) + if streams: + for n in list(streams.keys()): + yield streams[n] + if "video/mp4" in i: + yield HTTP(copy.copy(self.config), i["video/mp4"], 800, output=self.output) if self.backupapi: res = self.http.get(self.backupapi.replace("i=", ""), params={"i": "object"})