diff options
author | Sergey M․ <dstftw@gmail.com> | 2020-04-07 22:54:34 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2020-04-07 22:55:59 +0700 |
commit | 13b08034b53efdcf7055df92199a0f35cf1e172e (patch) | |
tree | ed76c17071b1c65337ba7aebd2f9b18f0b804c30 /youtube_dl/extractor | |
parent | 6a6e1a0cd8bacf5a23f731eedaa1783503470227 (diff) |
[extractor/common] Skip malformed ISM manifest XMLs while extracting ISM formats (#24667)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/common.py | 2 |
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) |