Small fix for HULU
This commit is contained in:
parent
1867fb9e5e
commit
ac7c9902fb
@ -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:
|
||||||
|
try:
|
||||||
track.psshPR = next(x.psshPR for x in tracks.videos if x.psshPR)
|
track.psshPR = next(x.psshPR for x in tracks.videos if x.psshPR)
|
||||||
|
except: pass
|
||||||
if not track.psshWV:
|
if not track.psshWV:
|
||||||
|
try:
|
||||||
track.psshWV = next(x.psshWV for x in tracks.videos if x.psshWV)
|
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]]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user