You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.2 KiB

  1. from __future__ import unicode_literals
  2. import re
  3. from .nuevo import NuevoBaseIE
  4. class LoveHomePornIE(NuevoBaseIE):
  5. _VALID_URL = r'https?://(?:www\.)?lovehomeporn\.com/video/(?P<id>\d+)(?:/(?P<display_id>[^/?#&]+))?'
  6. _TEST = {
  7. 'url': 'http://lovehomeporn.com/video/48483/stunning-busty-brunette-girlfriend-sucking-and-riding-a-big-dick#menu',
  8. 'info_dict': {
  9. 'id': '48483',
  10. 'display_id': 'stunning-busty-brunette-girlfriend-sucking-and-riding-a-big-dick',
  11. 'ext': 'mp4',
  12. 'title': 'Stunning busty brunette girlfriend sucking and riding a big dick',
  13. 'age_limit': 18,
  14. 'duration': 238.47,
  15. },
  16. 'params': {
  17. 'skip_download': True,
  18. }
  19. }
  20. def _real_extract(self, url):
  21. mobj = re.match(self._VALID_URL, url)
  22. video_id = mobj.group('id')
  23. display_id = mobj.group('display_id')
  24. info = self._extract_nuevo(
  25. 'http://lovehomeporn.com/media/nuevo/config.php?key=%s' % video_id,
  26. video_id)
  27. info.update({
  28. 'display_id': display_id,
  29. 'age_limit': 18
  30. })
  31. return info