]> git.bitcoin.ninja Git - youtube-dl/blob - youtube_dl/extractor/nowvideo.py
Merge branch 'ustream-embed-recorded2' of https://github.com/anovicecodemonkey/youtub...
[youtube-dl] / youtube_dl / extractor / nowvideo.py
1 from __future__ import unicode_literals
2
3 from .novamov import NovaMovIE
4
5
6 class NowVideoIE(NovaMovIE):
7     IE_NAME = 'nowvideo'
8     IE_DESC = 'NowVideo'
9
10     _VALID_URL = NovaMovIE._VALID_URL_TEMPLATE % {'host': 'nowvideo\.(?:ch|sx|eu|at|ag|co)'}
11
12     _HOST = 'www.nowvideo.ch'
13
14     _FILE_DELETED_REGEX = r'>This file no longer exists on our servers.<'
15     _FILEKEY_REGEX = r'var fkzd="([^"]+)";'
16     _TITLE_REGEX = r'<h4>([^<]+)</h4>'
17     _DESCRIPTION_REGEX = r'</h4>\s*<p>([^<]+)</p>'
18
19     _TEST = {
20         'url': 'http://www.nowvideo.ch/video/0mw0yow7b6dxa',
21         'md5': 'f8fbbc8add72bd95b7850c6a02fc8817',
22         'info_dict': {
23             'id': '0mw0yow7b6dxa',
24             'ext': 'flv',
25             'title': 'youtubedl test video _BaW_jenozKc.mp4',
26             'description': 'Description',
27         }
28     }