mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-25 00:31:26 +01:00
Compare commits
4 Commits
d5011cd856
...
176dd66d48
Author | SHA1 | Date | |
---|---|---|---|
|
176dd66d48 | ||
|
f6631360e8 | ||
|
f835a62abe | ||
|
0b6f0e18d9 |
|
@ -2168,6 +2168,9 @@ class InfoExtractor:
|
||||||
subtitles.setdefault(lang, []).append(sub_info)
|
subtitles.setdefault(lang, []).append(sub_info)
|
||||||
if media_type not in ('VIDEO', 'AUDIO'):
|
if media_type not in ('VIDEO', 'AUDIO'):
|
||||||
return
|
return
|
||||||
|
channels = media.get('CHANNELS')
|
||||||
|
if channels is not None and str(channels).isdigit():
|
||||||
|
channels = int(channels)
|
||||||
media_url = media.get('URI')
|
media_url = media.get('URI')
|
||||||
if media_url:
|
if media_url:
|
||||||
manifest_url = format_url(media_url)
|
manifest_url = format_url(media_url)
|
||||||
|
@ -2178,6 +2181,7 @@ class InfoExtractor:
|
||||||
'url': manifest_url,
|
'url': manifest_url,
|
||||||
'manifest_url': m3u8_url,
|
'manifest_url': m3u8_url,
|
||||||
'language': media.get('LANGUAGE'),
|
'language': media.get('LANGUAGE'),
|
||||||
|
'audio_channels': channels,
|
||||||
'ext': ext,
|
'ext': ext,
|
||||||
'protocol': entry_protocol,
|
'protocol': entry_protocol,
|
||||||
'preference': preference,
|
'preference': preference,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user