myvidster.py 876 B

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