Skip to content

Commit

Permalink
[extractor/common] Skip malformed ISM manifest XMLs while extracting …
Browse files Browse the repository at this point in the history
…ISM formats (#24667)
  • Loading branch information
dstftw authored and pareronia committed Jun 22, 2020
1 parent 8c5ca77 commit 05598a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions youtube_dl/extractor/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 05598a2

Please sign in to comment.