projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
561b456
)
[youtube] Skip unsupported adaptive stream type (#18804)
author
Sergey M․
<dstftw@gmail.com>
Tue, 15 Jan 2019 18:28:50 +0000
(
01:28
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 15 Jan 2019 18:28:50 +0000
(
01:28
+0700)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index cca149107671144055486e1e64d37df3aecd3736..5e93b53294706ad3f5e766deff724faf37993aeb 100644
(file)
--- 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]