From 221cd1c2838bf8ebaaa9f4e41832b8b4ea038c05 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Thu, 23 Feb 2023 16:46:04 +0000 Subject: [PATCH] Fix JOC check on HLS playlists with no audio channel info --- devine/core/manifests/hls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: