def _extract_mpd_formats(self, mpd_url, video_id, mpd_id=None, note=None, errnote=None, fatal=True, formats_dict={}, data=None, headers={}, query={}):
    res = self._download_xml_handle(mpd_url, video_id, note=(note or 'Downloading MPD manifest'), errnote=(errnote or 'Failed to download MPD manifest'), fatal=fatal, data=data, headers=headers, query=query)
    if (res is False):
        return []
    (mpd_doc, urlh) = res
    if (mpd_doc is None):
        return []
    mpd_base_url = base_url(urlh.geturl())
    return self._parse_mpd_formats(mpd_doc, mpd_id=mpd_id, mpd_base_url=mpd_base_url, formats_dict=formats_dict, mpd_url=mpd_url)
def _extract_mpd_formats(self, mpd_url, video_id, mpd_id=None, note=None, errnote=None, fatal=True, formats_dict={}, data=None, headers={}, query={}):
    res = self._download_xml_handle(mpd_url, video_id, note=(note or 'Downloading MPD manifest'), errnote=(errnote or 'Failed to download MPD manifest'), fatal=fatal, data=data, headers=headers, query=query)
    if (res is False):
        return []
    (mpd_doc, urlh) = res
    if (mpd_doc is None):
        return []
    mpd_base_url = base_url(urlh.geturl())
    return self._parse_mpd_formats(mpd_doc, mpd_id=mpd_id, mpd_base_url=mpd_base_url, formats_dict=formats_dict, mpd_url=mpd_url)