1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[dctp] fix test

This commit is contained in:
Paul Hartmann 2015-01-30 00:35:53 +01:00
parent 87673cd438
commit 75a4fc5b72

View file

@ -9,7 +9,8 @@ class DctpTvIE(InfoExtractor):
_TEST = { _TEST = {
'url': 'http://www.dctp.tv/filme/videoinstallation-fuer-eine-kaufhausfassade/', 'url': 'http://www.dctp.tv/filme/videoinstallation-fuer-eine-kaufhausfassade/',
'info_dict': { 'info_dict': {
'id': 'videoinstallation-fuer-eine-kaufhausfassade', 'id': '1324',
'display_id': 'videoinstallation-fuer-eine-kaufhausfassade',
'ext': 'flv', 'ext': 'flv',
'title': 'Videoinstallation für eine Kaufhausfassade'} 'title': 'Videoinstallation für eine Kaufhausfassade'}
} }
@ -21,7 +22,7 @@ class DctpTvIE(InfoExtractor):
version = version_json['version_name'] version = version_json['version_name']
info_json = self._download_json( info_json = self._download_json(
'{0}{1}/restapi/slugs/{2}.json'.format(base_url, version, video_id), video_id) '{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( meta_json = self._download_json(
'{0}{1}/restapi/media/{2}.json'.format(base_url, version, object_id), video_id) '{0}{1}/restapi/media/{2}.json'.format(base_url, version, object_id), video_id)
uuid = meta_json['uuid'] uuid = meta_json['uuid']