aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Hartmann <phaaurlt@gmail.com>2015-01-30 00:35:53 +0100
committerPaul Hartmann <phaaurlt@gmail.com>2015-01-30 00:35:53 +0100
commit75a4fc5b7233d4cb4376b205c585eb4d3d486241 (patch)
treea53a0e9fc3052880f86246f0b81f5b0ac222c08d
parent87673cd4389f6798bb438bb46a306dc08c906cf5 (diff)
[dctp] fix test
-rw-r--r--youtube_dl/extractor/dctp.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/dctp.py b/youtube_dl/extractor/dctp.py
index 752cff978..c80d28865 100644
--- a/youtube_dl/extractor/dctp.py
+++ b/youtube_dl/extractor/dctp.py
@@ -9,7 +9,8 @@ class DctpTvIE(InfoExtractor):
_TEST = {
'url': 'http://www.dctp.tv/filme/videoinstallation-fuer-eine-kaufhausfassade/',
'info_dict': {
- 'id': 'videoinstallation-fuer-eine-kaufhausfassade',
+ 'id': '1324',
+ 'display_id': 'videoinstallation-fuer-eine-kaufhausfassade',
'ext': 'flv',
'title': 'Videoinstallation für eine Kaufhausfassade'}
}
@@ -21,7 +22,7 @@ class DctpTvIE(InfoExtractor):
version = version_json['version_name']
info_json = self._download_json(
'{0}{1}/restapi/slugs/{2}.json'.format(base_url, version, video_id), video_id)
- object_id = info_json['object_id']
+ object_id = str(info_json['object_id'])
meta_json = self._download_json(
'{0}{1}/restapi/media/{2}.json'.format(base_url, version, object_id), video_id)
uuid = meta_json['uuid']