Fixed Amazon
Amazon should be back to normal
This commit is contained in:
parent
0bc8c533fd
commit
5ac64b0348
Binary file not shown.
@ -90,7 +90,7 @@ def parse(*, url=None, data=None, source, session=None, downloader=None):
|
|||||||
pr_pssh_dec = pr_pssh_dec[pr_pssh_dec.index('<'):]
|
pr_pssh_dec = pr_pssh_dec[pr_pssh_dec.index('<'):]
|
||||||
pr_pssh_xml = xmltodict.parse(pr_pssh_dec)
|
pr_pssh_xml = xmltodict.parse(pr_pssh_dec)
|
||||||
kid_hex = base64.b64decode(pr_pssh_xml['WRMHEADER']['DATA']['KID']).hex()
|
kid_hex = base64.b64decode(pr_pssh_xml['WRMHEADER']['DATA']['KID']).hex()
|
||||||
kid = uuid.UUID(kid_hex).hex
|
kid = uuid.UUID(kid_hex).bytes_le.hex() # The bytes le mean little endian. This is necessary. DO NOT remove this
|
||||||
|
|
||||||
stream_indices = ism['SmoothStreamingMedia']['StreamIndex']
|
stream_indices = ism['SmoothStreamingMedia']['StreamIndex']
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user