Fixed Amazon

Amazon should be back to normal
This commit is contained in:
Aswin 2025-04-08 18:28:33 +05:30
parent 0bc8c533fd
commit 5ac64b0348
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -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']