1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

flake8 add new line end of file

This commit is contained in:
Johan Andersson 2018-02-26 00:02:53 +01:00
parent bb8d10bed6
commit 8f126c3d49
10 changed files with 10 additions and 10 deletions

View File

@ -10,4 +10,4 @@ if __package__ is None and not hasattr(sys, "frozen"):
import svtplay_dl
if __name__ == '__main__':
svtplay_dl.main()
svtplay_dl.main()

View File

@ -74,4 +74,4 @@ class Bigbrother(Service, OpenGraphThumbMixin):
yield streams[n]
if i["defaultURL"].endswith("mp4"):
yield HTTP(copy.copy(self.options), i["defaultURL"], i["encodingRate"] / 1024)
yield HTTP(copy.copy(self.options), i["defaultURL"], i["encodingRate"] / 1024)

View File

@ -109,4 +109,4 @@ class Disney(Service, OpenGraphThumbMixin):
redirect = self.http.check_redirect(url)
streams = hlsparse(self.options, self.http.request("get", redirect), redirect)
for n in list(streams.keys()):
yield streams[n]
yield streams[n]

View File

@ -18,4 +18,4 @@ class Efn(Service, OpenGraphThumbMixin):
streams = hlsparse(self.options, self.http.request("get", match.group(1)), match.group(1))
if streams:
for n in list(streams.keys()):
yield streams[n]
yield streams[n]

View File

@ -21,4 +21,4 @@ class Filmarkivet(Service, OpenGraphThumbMixin):
if not match:
yield ServiceError("Can't find the video file")
return
yield HTTP(copy.copy(self.options), match.group(1), 480)
yield HTTP(copy.copy(self.options), match.group(1), 480)

View File

@ -42,4 +42,4 @@ class Flowonline(Service, OpenGraphThumbMixin):
streams = hlsparse(self.options, self.http.request("get", match.group(1)), match.group(1))
for n in list(streams.keys()):
yield streams[n]
yield streams[n]

View File

@ -28,4 +28,4 @@ class Radioplay(Service):
yield HTTP(copy.copy(self.options), data["station"]["streams"][i], i)
else:
yield ServiceError("Can't find stream info")
return
return

View File

@ -47,4 +47,4 @@ class Ruv(Service):
def checklive(url):
return True if re.search("live", url) else False
return True if re.search("live", url) else False

View File

@ -23,4 +23,4 @@ class Svt(Svtplay):
janson = res.json()
videos = self._get_video(janson)
for i in videos:
yield i
yield i

View File

@ -81,4 +81,4 @@ def _get_terminal_size_linux():
cr = (os.environ['LINES'], os.environ['COLUMNS'])
except Exception:
return None
return int(cr[1]), int(cr[0])
return int(cr[1]), int(cr[0])