- mobj = re.match(self._VALID_URL, url)
- video_id = mobj.group('id')
-
- webpage = self._download_webpage(
- url, video_id, note='Downloading initial webpage')
- title = self._html_search_regex(
- r'class="title">(.*?)</h2>', webpage, 'title')
- redirect_url = self._html_search_regex(
- r'pg&settings=(.*?)\|0"\);', webpage, 'title')
- webpage2 = self._download_webpage(redirect_url, video_id)
- video_url = self._html_search_regex(
- r'flvMask:(.*?);', webpage2, 'video_url')
-
+ video_id = self._match_id(url)
+
+ webpage = self._download_webpage(url, video_id)
+ title = self._og_search_title(webpage)
+ info_dict = self._parse_html5_media_entries(url, webpage, video_id)[0]
+