

def _real_extract(self, url):
    query = compat_urlparse.urlparse(url).query
    query_dic = compat_urlparse.parse_qs(query)
    video_id = query_dic['publishedid'][0]
    url = self._build_url(query)
    flashconfiguration = self._download_xml(url, video_id, 'Downloading flash configuration')
    file_url = flashconfiguration.find('file').text
    file_url = file_url.replace('/playlist.aspx', '/mrssplaylist.aspx')
    file_url = re.sub('(?<=\\?)(.+)$', (lambda m: self._clean_query(m.group())), file_url)
    info = self._download_xml(file_url, video_id, 'Downloading video info')
    item = info.find('channel/item')

    def _bp(p):
        return xpath_with_ns(p, {
            'media': 'http://search.yahoo.com/mrss/',
            'jwplayer': 'http://developer.longtailvideo.com/trac/wiki/FlashFormats',
        })
    formats = []
    for content in item.findall(_bp('media:group/media:content')):
        attr = content.attrib
        f_url = attr['url']
        width = int(attr['width'])
        bitrate = int(attr['bitrate'])
        format_id = ('%d-%dk' % (width, bitrate))
        formats.append({
            'format_id': format_id,
            'url': f_url,
            'width': width,
            'tbr': bitrate,
        })
    self._sort_formats(formats)
    return {
        'id': video_id,
        'title': item.find('title').text,
        'formats': formats,
        'thumbnail': item.find(_bp('media:thumbnail')).attrib['url'],
        'description': item.find('description').text,
        'duration': int(attr['duration']),
    }

dataset/ETHPy150Open yasoob/youtube-dl-GUI/youtube_dl/extractor/internetvideoarchive.py InternetVideoArchiveIE._real_extract/original