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