mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
hls: support keys over https as well as http
This commit is contained in:
parent
2bf02d1a2b
commit
b5c9339b2c
@ -36,7 +36,8 @@ def download_hls(options, url, baseurl=None):
|
||||
except ImportError:
|
||||
log.error("You need to install pycrypto to download encrypted HLS streams")
|
||||
sys.exit(2)
|
||||
match = re.search(r"URI=\"(http://.*)\"", keydata)
|
||||
|
||||
match = re.search(r'URI="(https?://.*?)"', keydata)
|
||||
key = get_http_data(match.group(1))
|
||||
rand = os.urandom(16)
|
||||
decryptor = AES.new(key, AES.MODE_CBC, rand)
|
||||
|
Loading…
Reference in New Issue
Block a user