]>
jfr.im git - yt-dlp.git/blob - youtube_dl/extractor/aol.py
1 from __future__
import unicode_literals
5 from .common
import InfoExtractor
6 from .fivemin
import FiveMinIE
9 class AolIE(InfoExtractor
):
10 IE_NAME
= 'on.aol.com'
11 _VALID_URL
= r
'http://on\.aol\.com/video/.*-(?P<id>\d+)($|\?)'
14 'url': 'http://on.aol.com/video/u-s--official-warns-of-largest-ever-irs-phone-scam-518167793?icid=OnHomepageC2Wide_MustSee_Img',
15 'md5': '18ef68f48740e86ae94b98da815eec42',
19 'title': 'U.S. Official Warns Of \'Largest Ever\' IRS Phone Scam',
21 'add_ie': ['FiveMin'],
24 def _real_extract(self
, url
):
25 mobj
= re
.match(self
._VALID
_URL
, url
)
26 video_id
= mobj
.group('id')
27 self
.to_screen('Downloading 5min.com video %s' % video_id
)
28 return FiveMinIE
._build
_result
(video_id
)