1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-06-20 14:36:52 +02:00

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

This commit is contained in:
Sergey M․ 2020-04-07 22:54:34 +07:00
parent 6a6e1a0cd8
commit 13b08034b5
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -2340,6 +2340,8 @@ def _extract_ism_formats(self, ism_url, video_id, ism_id=None, note=None, errnot
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)