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