1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

urplay: better handling for HD streams

This commit is contained in:
Johan Andersson 2014-02-02 18:22:35 +01:00
parent fd5801965a
commit a7c9043301

View File

@ -33,7 +33,9 @@ class Urplay(Service, OpenGraphThumbMixin):
if len(jsondata["file_html5_hd"]) > 0:
http_hd = "http://%s/%s" % (basedomain, jsondata["file_html5_hd"])
hls_hd = "%s%s" % (http_hd, jsondata["streaming_config"]["http_streaming"]["hls_file"])
path_hd = "mp%s:%s" % (jsondata["file_hd"][-1], jsondata["file_hd"])
tmp = jsondata["file_html5_hd"]
match = re.search(".*(mp[34]:.*$)", tmp)
path_hd = match.group(1)
hd = True
#hds = "%s%s" % (http, jsondata["streaming_config"]["http_streaming"]["hds_file"])
hls = "%s%s" % (http, jsondata["streaming_config"]["http_streaming"]["hls_file"])