mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 13:44:14 +01:00
flake8 over-indented for visual indent
This commit is contained in:
parent
8f126c3d49
commit
5339bdc265
@ -176,7 +176,7 @@ def dashparse(options, res, url):
|
||||
bitrate = i + list(audiofiles.keys())[0]
|
||||
options.segments = videofiles[i]["segments"]
|
||||
streams[bitrate] = DASH(copy.copy(options), url, bitrate, cookies=res.cookies,
|
||||
audio=audiofiles[list(audiofiles.keys())[0]]["files"], files=videofiles[i]["files"])
|
||||
audio=audiofiles[list(audiofiles.keys())[0]]["files"], files=videofiles[i]["files"])
|
||||
|
||||
return streams
|
||||
|
||||
|
@ -47,9 +47,9 @@ class Mtvnn(Service, OpenGraphThumbMixin):
|
||||
hls_asset = self.http.request("get", hls_url)
|
||||
xml = ET.XML(hls_asset.text)
|
||||
|
||||
if xml.find("./video") is not None and xml.find("./video").find("item") is not None and \
|
||||
xml.find("./video").find("item").find("rendition") is not None and \
|
||||
xml.find("./video").find("item").find("rendition").find("src") is not None:
|
||||
if xml.find("./video") is not None and xml.find("./video").find("item") is not None \
|
||||
and xml.find("./video").find("item").find("rendition") is not None \
|
||||
and xml.find("./video").find("item").find("rendition").find("src") is not None:
|
||||
|
||||
hls_url = xml.find("./video").find("item").find("rendition").find("src").text
|
||||
stream = hlsparse(self.options, self.http.request("get", hls_url), hls_url)
|
||||
|
Loading…
Reference in New Issue
Block a user