mirror of
https://github.com/devine-dl/devine.git
synced 2025-04-29 17:49:44 +00:00
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":
|
if media.type == "AUDIO":
|
||||||
track_type = Audio
|
track_type = Audio
|
||||||
codec = audio_codecs_by_group_id.get(media.group_id)
|
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])
|
joc = int(media.channels.split("/JOC")[0])
|
||||||
media.channels = "5.1"
|
media.channels = "5.1"
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user