]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/videodetective.py
1 from __future__
import unicode_literals
3 from .common
import InfoExtractor
4 from ..compat
import compat_urlparse
5 from .internetvideoarchive
import InternetVideoArchiveIE
8 class VideoDetectiveIE(InfoExtractor
):
9 _VALID_URL
= r
'https?://www\.videodetective\.com/[^/]+/[^/]+/(?P<id>\d+)'
12 'url': 'http://www.videodetective.com/movies/kick-ass-2/194487',
16 'title': 'KICK-ASS 2',
17 'description': 'md5:65ba37ad619165afac7d432eaded6013',
22 def _real_extract(self
, url
):
23 video_id
= self
._match
_id
(url
)
24 webpage
= self
._download
_webpage
(url
, video_id
)
25 og_video
= self
._og
_search
_video
_url
(webpage
)
26 query
= compat_urlparse
.urlparse(og_video
).query
27 return self
.url_result(InternetVideoArchiveIE
._build
_url
(query
), ie
=InternetVideoArchiveIE
.ie_key())