Another DSNP fix

This commit is contained in:
chu23465 2025-04-13 15:19:36 +05:30
parent 3b894cd31a
commit ca9c9a0cf8
2 changed files with 2 additions and 1 deletions

View File

@ -225,7 +225,7 @@ class Track:
log.info("+ Replacing KID with correct track KID (DSNP workaround)")
if self.descriptor == self.Descriptor.M3U:
# if an m3u, try get from playlist
master = m3u8.loads(session.get(as_list(self.url)[0]).text, uri=self.url)
master = m3u8.loads((requests or session).get(as_list(self.url)[0]).text, uri=self.url)
for x in master.session_keys:
if x and x.keyformat.lower == "com.microsoft.playready" and not self.psshPR:
self.psshPR = x.uri.split(",")[-1]

View File

@ -544,6 +544,7 @@ class DisneyPlus(BaseService):
return tracks
def get_hulu_series(self, content_id: str) -> dict:
self.log.debug(self.config["bamsdk"])
r = self.session.get(
url=self.config["bamsdk"]["page"].format(id=content_id),
params={