1 from __future__ import unicode_literals
3 from .common import InfoExtractor
6 class AolIE(InfoExtractor):
8 _VALID_URL = r'(?:aol-video:|https?://on\.aol\.com/video/.*-)(?P<id>[0-9]+)(?:$|\?)'
11 'url': 'http://on.aol.com/video/u-s--official-warns-of-largest-ever-irs-phone-scam-518167793?icid=OnHomepageC2Wide_MustSee_Img',
12 'md5': '18ef68f48740e86ae94b98da815eec42',
16 'title': 'U.S. Official Warns Of \'Largest Ever\' IRS Phone Scam',
18 'add_ie': ['FiveMin'],
21 def _real_extract(self, url):
22 video_id = self._match_id(url)
23 return self.url_result('5min:%s' % video_id)
26 class AolFeaturesIE(InfoExtractor):
27 IE_NAME = 'features.aol.com'
28 _VALID_URL = r'https?://features\.aol\.com/video/(?P<id>[^/?#]+)'
31 'url': 'http://features.aol.com/video/behind-secret-second-careers-late-night-talk-show-hosts',
32 'md5': '7db483bb0c09c85e241f84a34238cc75',
36 'title': 'What To Watch - February 17, 2016',
38 'add_ie': ['FiveMin'],
41 def _real_extract(self, url):
42 display_id = self._match_id(url)
43 webpage = self._download_webpage(url, display_id)
44 return self.url_result(self._search_regex(
45 r'<script type="text/javascript" src="(https?://[^/]*?5min\.com/Scripts/PlayerSeed\.js[^"]+)"',
46 webpage, '5min embed url'), 'FiveMin')