mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
Break long lines into two lines.
This commit is contained in:
parent
0e9d30a359
commit
0544b57b77
@ -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):
|
||||
|
@ -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))
|
||||
|
@ -56,7 +56,7 @@ class Urplay(Service, OpenGraphThumbMixin):
|
||||
|
||||
def find_all_episodes(self, options):
|
||||
match = re.search(r'<link rel="alternate" type="application/rss\+xml" [^>]*href="([^"]+)"',
|
||||
self.get_urldata())
|
||||
self.get_urldata())
|
||||
if match is None:
|
||||
log.error("Couldn't retrieve episode list")
|
||||
sys.exit(2)
|
||||
|
Loading…
Reference in New Issue
Block a user