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)
|
stream = hlsparse(self.config, self.http.request("get", janson["urls"]["m3u"]), janson["urls"]["m3u"], output=self.output)
|
||||||
|
|
||||||
for key in list(stream.keys()):
|
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
|
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)
|
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()):
|
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"])
|
self.config.set("live", jsondata["data"]["publishing_status"]["live"])
|
||||||
playlist = jsondata["data"]["streams"]
|
playlist = jsondata["data"]["streams"]
|
||||||
for i in playlist:
|
for i in playlist:
|
||||||
if "application/x-mpegurl" in i:
|
if "application/x-mpegurl" in i:
|
||||||
streams = hlsparse(self.config, self.http.request("get", i["application/x-mpegurl"]),
|
streams = hlsparse(self.config, self.http.request("get", i["application/x-mpegurl"]),
|
||||||
i["application/x-mpegurl"], output=self.output)
|
i["application/x-mpegurl"], output=self.output)
|
||||||
if streams:
|
if streams:
|
||||||
for n in list(streams.keys()):
|
for n in list(streams.keys()):
|
||||||
yield streams[n]
|
yield streams[n]
|
||||||
if "video/mp4" in i:
|
if "video/mp4" in i:
|
||||||
yield HTTP(copy.copy(self.config), i["video/mp4"], 800, output=self.output)
|
yield HTTP(copy.copy(self.config), i["video/mp4"], 800, output=self.output)
|
||||||
|
|
||||||
if self.backupapi:
|
if self.backupapi:
|
||||||
res = self.http.get(self.backupapi.replace("i=", ""), params={"i": "object"})
|
res = self.http.get(self.backupapi.replace("i=", ""), params={"i": "object"})
|
||||||
|
Loading…
Reference in New Issue
Block a user