diff --git a/devine/core/manifests/hls.py b/devine/core/manifests/hls.py index 728075d..3ed4f5c 100644 --- a/devine/core/manifests/hls.py +++ b/devine/core/manifests/hls.py @@ -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: