]>
Commit | Line | Data |
---|---|---|
1 | from .common import InfoExtractor | |
2 | ||
3 | ||
4 | class MyVidsterIE(InfoExtractor): | |
5 | _VALID_URL = r'https?://(?:www\.)?myvidster\.com/video/(?P<id>\d+)/' | |
6 | ||
7 | _TEST = { | |
8 | 'url': 'http://www.myvidster.com/video/32059805/Hot_chemistry_with_raw_love_making', | |
9 | 'md5': '95296d0231c1363222c3441af62dc4ca', | |
10 | 'info_dict': { | |
11 | 'id': '3685814', | |
12 | 'title': 'md5:7d8427d6d02c4fbcef50fe269980c749', | |
13 | 'upload_date': '20141027', | |
14 | 'uploader': 'utkualp', | |
15 | 'ext': 'mp4', | |
16 | 'age_limit': 18, | |
17 | }, | |
18 | 'add_ie': ['XHamster'], | |
19 | } | |
20 | ||
21 | def _real_extract(self, url): | |
22 | video_id = self._match_id(url) | |
23 | webpage = self._download_webpage(url, video_id) | |
24 | ||
25 | return self.url_result(self._html_search_regex( | |
26 | r'rel="videolink" href="(?P<real_url>.*)">', | |
27 | webpage, 'real video url')) |