2 from __future__ import unicode_literals
6 from .common import InfoExtractor
9 class ETOnlineIE(InfoExtractor):
10 _VALID_URL = r'https?://(?:www\.)?etonline\.com/(?:[^/]+/)*(?P<id>[^/?#&]+)'
12 'url': 'http://www.etonline.com/tv/211130_dove_cameron_liv_and_maddie_emotional_episode_series_finale/',
14 'id': '211130_dove_cameron_liv_and_maddie_emotional_episode_series_finale',
15 'title': 'md5:a21ec7d3872ed98335cbd2a046f34ee6',
16 'description': 'md5:8b94484063f463cca709617c79618ccd',
20 'url': 'http://www.etonline.com/media/video/here_are_the_stars_who_love_bringing_their_moms_as_dates_to_the_oscars-211359/',
21 'only_matching': True,
23 BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/1242911076001/default_default/index.html?videoId=ref:%s'
25 def _real_extract(self, url):
26 playlist_id = self._match_id(url)
28 webpage = self._download_webpage(url, playlist_id)
32 self.BRIGHTCOVE_URL_TEMPLATE % video_id, 'BrightcoveNew', video_id)
33 for video_id in re.findall(
34 r'site\.brightcove\s*\([^,]+,\s*["\'](title_\d+)', webpage)]
36 return self.playlist_result(
38 self._og_search_title(webpage, fatal=False),
39 self._og_search_description(webpage))