Browse Source

added test for dctp

totalwebcasting
Paul Hartmann 10 years ago
parent
commit
48a1e5141a
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      youtube_dl/extractor/dctp.py

+ 8
- 1
youtube_dl/extractor/dctp.py View File

@ -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'
}

Loading…
Cancel
Save