From 8f126c3d4972b21b5badc8c798457c5d015765b4 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Mon, 26 Feb 2018 00:02:53 +0100 Subject: [PATCH] flake8 add new line end of file --- lib/svtplay_dl/__main__.py | 2 +- lib/svtplay_dl/service/bigbrother.py | 2 +- lib/svtplay_dl/service/disney.py | 2 +- lib/svtplay_dl/service/efn.py | 2 +- lib/svtplay_dl/service/filmarkivet.py | 2 +- lib/svtplay_dl/service/flowonline.py | 2 +- lib/svtplay_dl/service/radioplay.py | 2 +- lib/svtplay_dl/service/ruv.py | 2 +- lib/svtplay_dl/service/svt.py | 2 +- lib/svtplay_dl/utils/terminal.py | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/svtplay_dl/__main__.py b/lib/svtplay_dl/__main__.py index a0e70e0..ff333e7 100644 --- a/lib/svtplay_dl/__main__.py +++ b/lib/svtplay_dl/__main__.py @@ -10,4 +10,4 @@ if __package__ is None and not hasattr(sys, "frozen"): import svtplay_dl if __name__ == '__main__': - svtplay_dl.main() \ No newline at end of file + svtplay_dl.main() diff --git a/lib/svtplay_dl/service/bigbrother.py b/lib/svtplay_dl/service/bigbrother.py index 41f8fd2..26718c3 100644 --- a/lib/svtplay_dl/service/bigbrother.py +++ b/lib/svtplay_dl/service/bigbrother.py @@ -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) \ No newline at end of file + yield HTTP(copy.copy(self.options), i["defaultURL"], i["encodingRate"] / 1024) diff --git a/lib/svtplay_dl/service/disney.py b/lib/svtplay_dl/service/disney.py index c5b25a7..eaa1dee 100644 --- a/lib/svtplay_dl/service/disney.py +++ b/lib/svtplay_dl/service/disney.py @@ -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] \ No newline at end of file + yield streams[n] diff --git a/lib/svtplay_dl/service/efn.py b/lib/svtplay_dl/service/efn.py index df18eef..b6ebf6f 100644 --- a/lib/svtplay_dl/service/efn.py +++ b/lib/svtplay_dl/service/efn.py @@ -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] \ No newline at end of file + yield streams[n] diff --git a/lib/svtplay_dl/service/filmarkivet.py b/lib/svtplay_dl/service/filmarkivet.py index f696d17..2661909 100644 --- a/lib/svtplay_dl/service/filmarkivet.py +++ b/lib/svtplay_dl/service/filmarkivet.py @@ -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) \ No newline at end of file + yield HTTP(copy.copy(self.options), match.group(1), 480) diff --git a/lib/svtplay_dl/service/flowonline.py b/lib/svtplay_dl/service/flowonline.py index cef85e1..35f4fd2 100644 --- a/lib/svtplay_dl/service/flowonline.py +++ b/lib/svtplay_dl/service/flowonline.py @@ -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] \ No newline at end of file + yield streams[n] diff --git a/lib/svtplay_dl/service/radioplay.py b/lib/svtplay_dl/service/radioplay.py index 60cfc6b..cbebfea 100644 --- a/lib/svtplay_dl/service/radioplay.py +++ b/lib/svtplay_dl/service/radioplay.py @@ -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 \ No newline at end of file + return diff --git a/lib/svtplay_dl/service/ruv.py b/lib/svtplay_dl/service/ruv.py index 619122f..3149f60 100644 --- a/lib/svtplay_dl/service/ruv.py +++ b/lib/svtplay_dl/service/ruv.py @@ -47,4 +47,4 @@ class Ruv(Service): def checklive(url): - return True if re.search("live", url) else False \ No newline at end of file + return True if re.search("live", url) else False diff --git a/lib/svtplay_dl/service/svt.py b/lib/svtplay_dl/service/svt.py index 7f20a2a..9f2fa00 100644 --- a/lib/svtplay_dl/service/svt.py +++ b/lib/svtplay_dl/service/svt.py @@ -23,4 +23,4 @@ class Svt(Svtplay): janson = res.json() videos = self._get_video(janson) for i in videos: - yield i \ No newline at end of file + yield i diff --git a/lib/svtplay_dl/utils/terminal.py b/lib/svtplay_dl/utils/terminal.py index ff9ca3a..aa1c9c8 100644 --- a/lib/svtplay_dl/utils/terminal.py +++ b/lib/svtplay_dl/utils/terminal.py @@ -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]) \ No newline at end of file + return int(cr[1]), int(cr[0])