Small change

This commit is contained in:
Aswin 2025-04-06 20:53:27 +05:30
parent 96e36e7a05
commit dd67896a9f
2 changed files with 4 additions and 4 deletions

View File

@ -360,11 +360,11 @@ class Hotstar(BaseService):
@staticmethod
def get_akamai():
enc_key = b"\x05\xfc\x1a\x01\xca\xc9\x4b\xc4\x12\xfc\x53\x12\x07\x75\xf9\xee"
enc_key = "05fc1a01cac94bc412fc53120775f9ee"
st = int(time.time())
exp = st + 12000
res = f"st={st}~exp={exp}~acl=/*"
res += "~hmac=" + hmac.new(enc_key, res.encode(), hashlib.sha256).hexdigest()
res += "~hmac=" + hmac.new(bytes.fromhex(enc_key), res.encode(), hashlib.sha256).hexdigest()
return res
def get_token(self):

View File

@ -4,7 +4,6 @@ tag_sd: 'JEFF'
aria2c:
file_allocation: 'prealloc'
cdm:
default: 'hisense_smarttv_he55a7000euwts_sl3000'
@ -21,7 +20,8 @@ cdm_api:
security_level: 1
credentials:
iTunes: 'Playreadydrm@proton.me'
iTunes: ''
Hotstar: 'username:password'
directories:
temp: ''