- mobj = re.match(self._VALID_URL, url)
- video_id = mobj.group('id')
-
- if video_id is not None:
- return FiveMinIE._build_result(video_id)
- else:
- title = url_basename(url)
- webpage = self._download_webpage(url, title)
- ids = re.findall(r'<iframe[^>]+?playList=(\d+)', webpage)
- return {
- '_type': 'playlist',
- 'title': title,
- 'entries': [FiveMinIE._build_result(id) for id in ids]
- }