nonktube.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. from .nuevo import NuevoBaseIE
  2. class NonkTubeIE(NuevoBaseIE):
  3. _VALID_URL = r'https?://(?:www\.)?nonktube\.com/(?:(?:video|embed)/|media/nuevo/embed\.php\?.*?\bid=)(?P<id>\d+)'
  4. _TESTS = [{
  5. 'url': 'https://www.nonktube.com/video/118636/sensual-wife-uncensored-fucked-in-hairy-pussy-and-facialized',
  6. 'info_dict': {
  7. 'id': '118636',
  8. 'ext': 'mp4',
  9. 'title': 'Sensual Wife Uncensored Fucked In Hairy Pussy And Facialized',
  10. 'age_limit': 18,
  11. 'duration': 1150.98,
  12. },
  13. 'params': {
  14. 'skip_download': True,
  15. },
  16. }, {
  17. 'url': 'https://www.nonktube.com/embed/118636',
  18. 'only_matching': True,
  19. }]
  20. def _real_extract(self, url):
  21. video_id = self._match_id(url)
  22. webpage = self._download_webpage(url, video_id)
  23. title = self._og_search_title(webpage)
  24. info = self._parse_html5_media_entries(url, webpage, video_id)[0]
  25. info.update({
  26. 'id': video_id,
  27. 'title': title,
  28. 'age_limit': 18,
  29. })
  30. return info