aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2020-04-07 22:54:34 +0700
committerSergey M․ <dstftw@gmail.com>2020-04-07 22:55:59 +0700
commit13b08034b53efdcf7055df92199a0f35cf1e172e (patch)
treeed76c17071b1c65337ba7aebd2f9b18f0b804c30
parent6a6e1a0cd8bacf5a23f731eedaa1783503470227 (diff)
[extractor/common] Skip malformed ISM manifest XMLs while extracting ISM formats (#24667)
-rw-r--r--youtube_dl/extractor/common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index eaae5e484..c51a3a07d 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -2340,6 +2340,8 @@ class InfoExtractor(object):
if res is False:
return []
ism_doc, urlh = res
+ if ism_doc is None:
+ return []
return self._parse_ism_formats(ism_doc, urlh.geturl(), ism_id)