[cloudtime] Add extractor
authorSergey M․ <dstftw@gmail.com>
Sun, 6 Dec 2015 03:37:38 +0000 (09:37 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 6 Dec 2015 03:37:38 +0000 (09:37 +0600)
youtube_dl/extractor/__init__.py
youtube_dl/extractor/novamov.py

index fefaff35b4d0129e8b8793f6270be0e7d7f81a6d..ed85d0ee5186ed7e9547ca5ad74b076a20caa4a3 100644 (file)
@@ -427,6 +427,7 @@ from .novamov import (
     MovShareIE,
     NowVideoIE,
     VideoWeedIE,
+    CloudTimeIE,
 )
 from .nowness import (
     NownessIE,
index 0605c0e0d131b591e8da32dcc20a24073d85199a..53d656f9d4085b3372930253f07613b38ca5cf41 100644 (file)
@@ -164,3 +164,17 @@ class VideoWeedIE(NovaMovIE):
             'description': ''
         },
     }
+
+
+class CloudTimeIE(NovaMovIE):
+    IE_NAME = 'cloudtime'
+    IE_DESC = 'CloudTime'
+
+    _VALID_URL = NovaMovIE._VALID_URL_TEMPLATE % {'host': 'cloudtime\.to'}
+
+    _HOST = 'www.cloudtime.to'
+
+    _FILE_DELETED_REGEX = r'>This file no longer exists on our servers.<'
+    _TITLE_REGEX = r'<div[^>]+class=["\']video_det["\'][^>]*>\s*<strong>([^<]+)</strong>'
+
+    _TEST = None