aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/divxstage.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-04-05 16:29:44 +0700
committerSergey M․ <dstftw@gmail.com>2014-04-05 16:29:44 +0700
commit6f88df2c577786f05741e8bcf8d379262641831d (patch)
tree269b1ad696616bb83f44902a98f9765b5f02cd9c /youtube_dl/extractor/divxstage.py
parent4479bf2762213ea4372a72138afcd2a5bb444e23 (diff)
downloadyoutube-dl-6f88df2c577786f05741e8bcf8d379262641831d.tar.xz
[divxstage] Add support for divxstage.eu
Diffstat (limited to 'youtube_dl/extractor/divxstage.py')
-rw-r--r--youtube_dl/extractor/divxstage.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/youtube_dl/extractor/divxstage.py b/youtube_dl/extractor/divxstage.py
new file mode 100644
index 000000000..4b323dd2c
--- /dev/null
+++ b/youtube_dl/extractor/divxstage.py
@@ -0,0 +1,27 @@
+from __future__ import unicode_literals
+
+from .novamov import NovaMovIE
+
+
+class DivxStageIE(NovaMovIE):
+ IE_NAME = 'divstage'
+ IE_DESC = 'DivxStage'
+
+ _VALID_URL = NovaMovIE._VALID_URL_TEMPLATE % {'host': 'divxstage\.(?:eu|net)'}
+
+ _HOST = 'www.divxstage.eu'
+
+ _FILE_DELETED_REGEX = r'>This file no longer exists on our servers.<'
+ _TITLE_REGEX = r'<div class="video_det">\s*<strong>([^<]+)</strong>'
+ _DESCRIPTION_REGEX = r'<div class="video_det">\s*<strong>[^<]+</strong>\s*<p>([^<]+)</p>'
+
+ _TEST = {
+ 'url': 'http://www.divxstage.eu/video/57f238e2e5e01',
+ 'md5': '63969f6eb26533a1968c4d325be63e72',
+ 'info_dict': {
+ 'id': '57f238e2e5e01',
+ 'ext': 'flv',
+ 'title': 'youtubedl test video',
+ 'description': 'This is a test video for youtubedl.',
+ }
+ } \ No newline at end of file