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:
parent
fd5801965a
commit
a7c9043301
@ -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"])
|
||||
|
Loading…
Reference in New Issue
Block a user