From 636aa83ed3fa2b2ef01b6919fca4e4d603b9773a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Sun, 6 Dec 2015 09:37:38 +0600 Subject: [PATCH] [cloudtime] Add extractor --- youtube_dl/extractor/__init__.py | 1 + youtube_dl/extractor/novamov.py | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/youtube_dl/extractor/__init__.py b/youtube_dl/extractor/__init__.py index fefaff35b4..ed85d0ee51 100644 --- a/youtube_dl/extractor/__init__.py +++ b/youtube_dl/extractor/__init__.py @@ -427,6 +427,7 @@ MovShareIE, NowVideoIE, VideoWeedIE, + CloudTimeIE, ) from .nowness import ( NownessIE, diff --git a/youtube_dl/extractor/novamov.py b/youtube_dl/extractor/novamov.py index 0605c0e0d1..53d656f9d4 100644 --- a/youtube_dl/extractor/novamov.py +++ b/youtube_dl/extractor/novamov.py @@ -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']+class=["\']video_det["\'][^>]*>\s*([^<]+)' + + _TEST = None