Skip to content

A feature-rich command-line audio/video downloader

[extractor/common] Skip malformed ISM manifest XMLs while extracting ISM formats (#24667)

Sergey M․13b08034b53e
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index eaae5e484f..c51a3a07db 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)