forked from DRMTalks/devine
Fix JOC check on HLS playlists with no audio channel info
This commit is contained in:
parent
1f86775ac9
commit
221cd1c283
|
@ -148,7 +148,7 @@ class HLS:
|
|||
if media.type == "AUDIO":
|
||||
track_type = Audio
|
||||
codec = audio_codecs_by_group_id.get(media.group_id)
|
||||
if media.channels.endswith("/JOC"):
|
||||
if media.channels and media.channels.endswith("/JOC"):
|
||||
joc = int(media.channels.split("/JOC")[0])
|
||||
media.channels = "5.1"
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue