diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index eaae5e484f99..c51a3a07db69 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -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)