diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index 4a4b5416d0..f240180e52 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -2303,6 +2303,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) @@ -2315,6 +2318,7 @@ class InfoExtractor: 'url': manifest_url, 'manifest_url': m3u8_url, 'language': media.get('LANGUAGE'), + 'audio_channels': channels, 'ext': ext, 'protocol': entry_protocol, 'preference': preference,