From: Sergey M․ Date: Tue, 7 Apr 2020 15:54:34 +0000 (+0700) Subject: [extractor/common] Skip malformed ISM manifest XMLs while extracting ISM formats... X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=13b08034b53efdcf7055df92199a0f35cf1e172e;p=youtube-dl [extractor/common] Skip malformed ISM manifest XMLs while extracting ISM formats (#24667) --- 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)