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:
parent
bb8d10bed6
commit
8f126c3d49
@ -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()
|
||||
|
@ -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)
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
@ -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)
|
||||
|
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -23,4 +23,4 @@ class Svt(Svtplay):
|
||||
janson = res.json()
|
||||
videos = self._get_video(janson)
|
||||
for i in videos:
|
||||
yield i
|
||||
yield i
|
||||
|
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user