- m = re.match(self._VALID_URL, url)
- video_id = m.group('id')
-
- webpage_src = self._download_webpage(url, video_id)
-
- video_url = self._search_regex('videoId=(.*?)&?',
- webpage_src, u'video URL', fatal=False)
+ video_id = self._match_id(url)
+ webpage = self._download_webpage(url, video_id)