def _extract_ism_formats(self, ism_url, video_id, ism_id=None, note=None, errnote=None, fatal=True, data=None, headers={}, query={}):
    res = self._download_xml_handle(ism_url, video_id, note=(note or 'Downloading ISM manifest'), errnote=(errnote or 'Failed to download ISM manifest'), fatal=fatal, data=data, headers=headers, query=query)
    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)
def _extract_ism_formats(self, ism_url, video_id, ism_id=None, note=None, errnote=None, fatal=True, data=None, headers={}, query={}):
    res = self._download_xml_handle(ism_url, video_id, note=(note or 'Downloading ISM manifest'), errnote=(errnote or 'Failed to download ISM manifest'), fatal=fatal, data=data, headers=headers, query=query)
    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)