diff options
author | Paul Hartmann <phaaurlt@gmail.com> | 2015-01-28 08:59:58 +0100 |
---|---|---|
committer | Paul Hartmann <phaaurlt@gmail.com> | 2015-01-28 08:59:58 +0100 |
commit | 48a1e5141ad9f6b5c4ce8a355dcd7bf99c80e333 (patch) | |
tree | 1868d02004bcb5fe99966967b80c40b6091fafc9 /youtube_dl/extractor | |
parent | 0865f397ae6c875ec4194093af5c8f53e75f2285 (diff) |
added test for dctp
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/dctp.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/youtube_dl/extractor/dctp.py b/youtube_dl/extractor/dctp.py index 5382255f0..9b687ef43 100644 --- a/youtube_dl/extractor/dctp.py +++ b/youtube_dl/extractor/dctp.py @@ -3,8 +3,16 @@ from __future__ import unicode_literals from .common import InfoExtractor + class DctpTvIE(InfoExtractor): _VALID_URL = r'^http://www.dctp.tv/(#/)?filme/(?P<id>.+?)/$' + _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 @@ class DctpTvIE(InfoExtractor): 'ext': 'flv' } - |