]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/engadget.py
4ea37ebd9f2072ea7610cfc4a8630e120fcfa81b
1 from __future__
import unicode_literals
5 from .common
import InfoExtractor
11 class EngadgetIE(InfoExtractor
):
12 _VALID_URL
= r
'''(?x)https?://www.engadget.com/
13 (?:video/5min/(?P<id>\d+)|
18 'url': 'http://www.engadget.com/video/5min/518153925/',
19 'md5': 'c6820d4828a5064447a4d9fc73f312c9',
23 'title': 'Samsung Galaxy Tab Pro 8.4 Review',
25 'add_ie': ['FiveMin'],
28 def _real_extract(self
, url
):
29 video_id
= self
._match
_id
(url
)
31 if video_id
is not None:
32 return self
.url_result('5min:%s' % video_id
)
34 title
= url_basename(url
)
35 webpage
= self
._download
_webpage
(url
, title
)
36 ids
= re
.findall(r
'<iframe[^>]+?playList=(\d+)', webpage
)
40 'entries': [self
.url_result('5min:%s' % vid
) for vid
in ids
]