logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git

myvidster.py (918B)


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