[extractor/common] Skip malformed ISM manifest XMLs while extracting ISM formats...
authorSergey M․ <dstftw@gmail.com>
Tue, 7 Apr 2020 15:54:34 +0000 (22:54 +0700)
committerSergey M․ <dstftw@gmail.com>
Tue, 7 Apr 2020 15:55:59 +0000 (22:55 +0700)
youtube_dl/extractor/common.py

index eaae5e484f99311ccf018301f773c87f9c8cf544..c51a3a07db693f23f9b53620353c3b4bc59957f0 100644 (file)
@@ -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)