def _media_formats(src, cur_media_type, type_info={}):
    full_url = absolute_url(src)
    ext = (type_info.get('ext') or determine_ext(full_url))
    if (ext == 'm3u8'):
        is_plain_url = False
        formats = self._extract_m3u8_formats(full_url, video_id, ext='mp4', entry_protocol=m3u8_entry_protocol, m3u8_id=m3u8_id, preference=preference, fatal=False)
    elif (ext == 'mpd'):
        is_plain_url = False
        formats = self._extract_mpd_formats(full_url, video_id, mpd_id=mpd_id, fatal=False)
    else:
        is_plain_url = True
        formats = [{'url': full_url, 'vcodec': ('none' if (cur_media_type == 'audio') else None)}]
    return (is_plain_url, formats)
def _media_formats(src, cur_media_type, type_info={}):
    full_url = absolute_url(src)
    ext = (type_info.get('ext') or determine_ext(full_url))
    if (ext == 'm3u8'):
        is_plain_url = False
        formats = self._extract_m3u8_formats(full_url, video_id, ext='mp4', entry_protocol=m3u8_entry_protocol, m3u8_id=m3u8_id, preference=preference, fatal=False)
    elif (ext == 'mpd'):
        is_plain_url = False
        formats = self._extract_mpd_formats(full_url, video_id, mpd_id=mpd_id, fatal=False)
    else:
        is_plain_url = True
        formats = [{'url': full_url, 'vcodec': ('none' if (cur_media_type == 'audio') else None)}]
    return (is_plain_url, formats)