1
0
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:
Johan Andersson 2018-02-26 00:04:39 +01:00
parent 8f126c3d49
commit 5339bdc265
3 changed files with 8 additions and 7 deletions

View File

@ -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

View File

@ -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)

View File

@ -46,8 +46,9 @@ setup(
"Topic :: Multimedia :: Video",
"Topic :: Utilities"],
extras_require={"dev": [
"flake8>=3.5, <3.6",
"tox>=2.3, <3",
"rstcheck>=2.2, <4.0"]
"flake8>=3.5, <3.6",
"tox>=2.3, <3",
"rstcheck>=2.2, <4.0"
]
}
)