This commit is contained in:
merismal34 2024-04-28 10:17:38 +05:30 committed by GitHub
commit 83b4874ee9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -2135,6 +2135,9 @@ class InfoExtractor:
subtitles.setdefault(lang, []).append(sub_info)
if media_type not in ('VIDEO', 'AUDIO'):
return
channels = media.get('CHANNELS')
if channels is not None and str(channels).isdigit():
channels = int(channels)
media_url = media.get('URI')
if media_url:
manifest_url = format_url(media_url)
@ -2145,6 +2148,7 @@ class InfoExtractor:
'url': manifest_url,
'manifest_url': m3u8_url,
'language': media.get('LANGUAGE'),
'audio_channels': channels,
'ext': ext,
'protocol': entry_protocol,
'preference': preference,