From 0544b57b778f66bb45fa40bbb56470c741f4d544 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Thu, 28 Aug 2014 07:56:47 +0200 Subject: [PATCH] Break long lines into two lines. --- lib/svtplay_dl/fetcher/hds.py | 3 ++- lib/svtplay_dl/service/kanal5.py | 3 ++- lib/svtplay_dl/service/urplay.py | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/svtplay_dl/fetcher/hds.py b/lib/svtplay_dl/fetcher/hds.py index 31797bd..d7a7c53 100644 --- a/lib/svtplay_dl/fetcher/hds.py +++ b/lib/svtplay_dl/fetcher/hds.py @@ -57,7 +57,8 @@ def hdsparse(options, manifest): parse = urlparse(manifest) querystring = parse.query for i in mediaIter: - streams[int(i.attrib["bitrate"])] = HDS(options, i.attrib["url"], i.attrib["bitrate"], manifest=manifest, bootstrap=bootstrap[i.attrib["bootstrapInfoId"]], metadata=i.find("{http://ns.adobe.com/f4m/1.0}metadata").text, querystring=querystring) + streams[int(i.attrib["bitrate"])] = HDS(options, i.attrib["url"], i.attrib["bitrate"], manifest=manifest, bootstrap=bootstrap[i.attrib["bootstrapInfoId"]], + metadata=i.find("{http://ns.adobe.com/f4m/1.0}metadata").text, querystring=querystring) return streams class HDS(VideoRetriever): diff --git a/lib/svtplay_dl/service/kanal5.py b/lib/svtplay_dl/service/kanal5.py index 6c4ffe0..400a55b 100644 --- a/lib/svtplay_dl/service/kanal5.py +++ b/lib/svtplay_dl/service/kanal5.py @@ -36,7 +36,8 @@ class Kanal5(Service): self.cj.set_cookie(cc) # get session cookie data = get_http_data("http://www.kanal5play.se/", cookiejar=self.cj) - authurl = "https://kanal5swe.appspot.com/api/user/login?callback=jQuery171029989&email=%s&password=%s&_=136250" % (options.username, options.password) + authurl = "https://kanal5swe.appspot.com/api/user/login?callback=jQuery171029989&email=%s&password=%s&_=136250" % \ + (options.username, options.password) data = get_http_data(authurl) match = re.search(r"({.*})\);", data) jsondata = json.loads(match.group(1)) diff --git a/lib/svtplay_dl/service/urplay.py b/lib/svtplay_dl/service/urplay.py index 001fa7f..ac7589c 100644 --- a/lib/svtplay_dl/service/urplay.py +++ b/lib/svtplay_dl/service/urplay.py @@ -56,7 +56,7 @@ class Urplay(Service, OpenGraphThumbMixin): def find_all_episodes(self, options): match = re.search(r']*href="([^"]+)"', - self.get_urldata()) + self.get_urldata()) if match is None: log.error("Couldn't retrieve episode list") sys.exit(2)