1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 17:22:31 +01:00

[youtube] Skip unsupported adaptive stream type (#18804)

This commit is contained in:
Sergey M․ 2019-01-16 01:28:50 +07:00
parent 561b456e2d
commit 2f483bc1c3
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -1827,6 +1827,10 @@ def _extract_filesize(media_url):
url_data = compat_parse_qs(url_data_str) url_data = compat_parse_qs(url_data_str)
if 'itag' not in url_data or 'url' not in url_data: if 'itag' not in url_data or 'url' not in url_data:
continue continue
stream_type = int_or_none(try_get(url_data, lambda x: x['stream_type'][0]))
# Unsupported FORMAT_STREAM_TYPE_OTF
if stream_type == 3:
continue
format_id = url_data['itag'][0] format_id = url_data['itag'][0]
url = url_data['url'][0] url = url_data['url'][0]