aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2019-01-16 01:28:50 +0700
committerSergey M․ <dstftw@gmail.com>2019-01-16 01:28:50 +0700
commit2f483bc1c389709623117079439708783122b5ec (patch)
treeb486423ab37c6e81c4bb63ff393c15b3bf2018e0
parent561b456e2d10e60b74a1bee6154bb7fdb0bfaf60 (diff)
[youtube] Skip unsupported adaptive stream type (#18804)
-rw-r--r--youtube_dl/extractor/youtube.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index cca149107..5e93b5329 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -1827,6 +1827,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
url_data = compat_parse_qs(url_data_str)
if 'itag' not in url_data or 'url' not in url_data:
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]
url = url_data['url'][0]