2014-02-24 17:30:58 +01:00
|
|
|
from __future__ import unicode_literals
|
2013-10-12 19:11:03 +02:00
|
|
|
|
2014-02-24 17:30:58 +01:00
|
|
|
from .novamov import NovaMovIE
|
2013-10-12 19:11:03 +02:00
|
|
|
|
|
|
|
|
2014-02-24 17:30:58 +01:00
|
|
|
class NowVideoIE(NovaMovIE):
|
|
|
|
IE_NAME = 'nowvideo'
|
|
|
|
IE_DESC = 'NowVideo'
|
2013-10-12 19:11:03 +02:00
|
|
|
|
2014-04-05 10:35:21 +02:00
|
|
|
_VALID_URL = NovaMovIE._VALID_URL_TEMPLATE % {'host': 'nowvideo\.(?:ch|sx|eu)'}
|
2013-10-12 19:11:03 +02:00
|
|
|
|
2014-02-24 17:30:58 +01:00
|
|
|
_HOST = 'www.nowvideo.ch'
|
2013-10-12 19:11:03 +02:00
|
|
|
|
2014-02-24 17:30:58 +01:00
|
|
|
_FILE_DELETED_REGEX = r'>This file no longer exists on our servers.<'
|
|
|
|
_FILEKEY_REGEX = r'var fkzd="([^"]+)";'
|
|
|
|
_TITLE_REGEX = r'<h4>([^<]+)</h4>'
|
|
|
|
_DESCRIPTION_REGEX = r'</h4>\s*<p>([^<]+)</p>'
|
2013-10-12 19:11:03 +02:00
|
|
|
|
2014-02-24 17:30:58 +01:00
|
|
|
_TEST = {
|
|
|
|
'url': 'http://www.nowvideo.ch/video/0mw0yow7b6dxa',
|
|
|
|
'md5': 'f8fbbc8add72bd95b7850c6a02fc8817',
|
|
|
|
'info_dict': {
|
|
|
|
'id': '0mw0yow7b6dxa',
|
|
|
|
'ext': 'flv',
|
|
|
|
'title': 'youtubedl test video _BaW_jenozKc.mp4',
|
|
|
|
'description': 'Description',
|
|
|
|
}
|
|
|
|
}
|