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
817 B

  1. from __future__ import unicode_literals
  2. from .novamov import NovaMovIE
  3. class NowVideoIE(NovaMovIE):
  4. IE_NAME = 'nowvideo'
  5. IE_DESC = 'NowVideo'
  6. _VALID_URL = NovaMovIE._VALID_URL_TEMPLATE % {'host': 'nowvideo\.(?:ch|sx|eu|at|ag|co)'}
  7. _HOST = 'www.nowvideo.ch'
  8. _FILE_DELETED_REGEX = r'>This file no longer exists on our servers.<'
  9. _FILEKEY_REGEX = r'var fkzd="([^"]+)";'
  10. _TITLE_REGEX = r'<h4>([^<]+)</h4>'
  11. _DESCRIPTION_REGEX = r'</h4>\s*<p>([^<]+)</p>'
  12. _TEST = {
  13. 'url': 'http://www.nowvideo.ch/video/0mw0yow7b6dxa',
  14. 'md5': 'f8fbbc8add72bd95b7850c6a02fc8817',
  15. 'info_dict': {
  16. 'id': '0mw0yow7b6dxa',
  17. 'ext': 'flv',
  18. 'title': 'youtubedl test video _BaW_jenozKc.mp4',
  19. 'description': 'Description',
  20. }
  21. }