commit 13b08034b53efdcf7055df92199a0f35cf1e172e
parent 6a6e1a0cd8bacf5a23f731eedaa1783503470227
Author: Sergey M․ <dstftw@gmail.com>
Date:   Tue,  7 Apr 2020 22:54:34 +0700

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

Diffstat:
Myoutube_dl/extractor/common.py | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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)