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.

27 lines
868 B

  1. from __future__ import unicode_literals
  2. from .novamov import NovaMovIE
  3. class DivxStageIE(NovaMovIE):
  4. IE_NAME = 'divxstage'
  5. IE_DESC = 'DivxStage'
  6. _VALID_URL = NovaMovIE._VALID_URL_TEMPLATE % {'host': 'divxstage\.(?:eu|net|ch|co|at|ag|to)'}
  7. _HOST = 'www.divxstage.eu'
  8. _FILE_DELETED_REGEX = r'>This file no longer exists on our servers.<'
  9. _TITLE_REGEX = r'<div class="video_det">\s*<strong>([^<]+)</strong>'
  10. _DESCRIPTION_REGEX = r'<div class="video_det">\s*<strong>[^<]+</strong>\s*<p>([^<]+)</p>'
  11. _TEST = {
  12. 'url': 'http://www.divxstage.eu/video/57f238e2e5e01',
  13. 'md5': '63969f6eb26533a1968c4d325be63e72',
  14. 'info_dict': {
  15. 'id': '57f238e2e5e01',
  16. 'ext': 'flv',
  17. 'title': 'youtubedl test video',
  18. 'description': 'This is a test video for youtubedl.',
  19. }
  20. }