Compare commits

...

4 Commits

Author SHA1 Message Date
merismal34
5aa46c053d
Merge f6631360e8 into e079ffbda6 2024-11-18 03:41:01 +05:30
merismal34
f6631360e8
fix linting error 2022-09-12 03:19:43 +00:00
merismal34
f835a62abe
Update common.py 2022-09-11 19:33:51 +00:00
merismal34
0b6f0e18d9
extract audio channels from HLS streams 2022-09-11 19:28:33 +00:00

View File

@ -2168,6 +2168,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)
@ -2178,6 +2181,7 @@ class InfoExtractor:
'url': manifest_url,
'manifest_url': m3u8_url,
'language': media.get('LANGUAGE'),
'audio_channels': channels,
'ext': ext,
'protocol': entry_protocol,
'preference': preference,