mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-23 19:55:38 +01:00
Cosmetic changes from flake8
This commit is contained in:
parent
dcbf6a8a0e
commit
525d33a516
@ -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]
|
||||
|
@ -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]
|
||||
|
@ -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"})
|
||||
|
Loading…
Reference in New Issue
Block a user