Small fix for HULU

This commit is contained in:
chu23465 2025-04-17 10:02:21 +05:30
parent 1867fb9e5e
commit ac7c9902fb

View File

@ -195,9 +195,13 @@ class Hulu(BaseService):
for track in tracks.audios: for track in tracks.audios:
if not track.psshPR: if not track.psshPR:
track.psshPR = next(x.psshPR for x in tracks.videos if x.psshPR) try:
track.psshPR = next(x.psshPR for x in tracks.videos if x.psshPR)
except: pass
if not track.psshWV: if not track.psshWV:
track.psshWV = next(x.psshWV for x in tracks.videos if x.psshWV) try:
track.psshWV = next(x.psshWV for x in tracks.videos if x.psshWV)
except: pass
if self.acodec: if self.acodec:
tracks.audios = [x for x in tracks.audios if (x.codec or "")[:4] == self.AUDIO_CODEC_MAP[self.acodec]] tracks.audios = [x for x in tracks.audios if (x.codec or "")[:4] == self.AUDIO_CODEC_MAP[self.acodec]]