From 48a1e5141ad9f6b5c4ce8a355dcd7bf99c80e333 Mon Sep 17 00:00:00 2001 From: Paul Hartmann Date: Wed, 28 Jan 2015 08:59:58 +0100 Subject: [PATCH] added test for dctp --- youtube_dl/extractor/dctp.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/dctp.py b/youtube_dl/extractor/dctp.py index 5382255f00..9b687ef439 100644 --- a/youtube_dl/extractor/dctp.py +++ b/youtube_dl/extractor/dctp.py @@ -3,8 +3,16 @@ from .common import InfoExtractor + class DctpTvIE(InfoExtractor): _VALID_URL = r'^http://www.dctp.tv/(#/)?filme/(?P.+?)/$' + _TEST = { + 'url': 'http://www.dctp.tv/filme/videoinstallation-fuer-eine-kaufhausfassade/', + 'info_dict': { + 'id': 'videoinstallation-fuer-eine-kaufhausfassade', + 'ext': 'flv', + 'title': 'Videoinstallation für eine Kaufhausfassade'} + } def _real_extract(self, url): video_id = self._match_id(url) @@ -38,4 +46,3 @@ def _real_extract(self, url): 'ext': 'flv' } -