1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-21 23:03:10 +08:00

[generic] Fix testcases

This commit is contained in:
Philipp Hagemeister 2014-09-29 05:12:57 +02:00
parent 6043f1df4e
commit a8eb5a8e61
2 changed files with 10 additions and 10 deletions

View File

@ -180,13 +180,13 @@ class GenericIE(InfoExtractor):
# Embedded TED video # Embedded TED video
{ {
'url': 'http://en.support.wordpress.com/videos/ted-talks/', 'url': 'http://en.support.wordpress.com/videos/ted-talks/',
'md5': 'deeeabcc1085eb2ba205474e7235a3d5', 'md5': '65fdff94098e4a607385a60c5177c638',
'info_dict': { 'info_dict': {
'id': '981', 'id': '1969',
'ext': 'mp4', 'ext': 'mp4',
'title': 'My web playroom', 'title': 'Hidden miracles of the natural world',
'uploader': 'Ze Frank', 'uploader': 'Louie Schwartzberg',
'description': 'md5:ddb2a40ecd6b6a147e400e535874947b', 'description': 'md5:8145d19d320ff3e52f28401f4c4283b9',
} }
}, },
# Embeded Ustream video # Embeded Ustream video
@ -295,13 +295,13 @@ class GenericIE(InfoExtractor):
{ {
'url': 'https://play.google.com/store/apps/details?id=com.gameloft.android.ANMP.GloftA8HM', 'url': 'https://play.google.com/store/apps/details?id=com.gameloft.android.ANMP.GloftA8HM',
'info_dict': { 'info_dict': {
'id': 'jpSGZsgga_I', 'id': '4vAffPZIT44',
'ext': 'mp4', 'ext': 'mp4',
'title': 'Asphalt 8: Airborne - Launch Trailer', 'title': 'Asphalt 8: Airborne - Update - Welcome to Dubai!',
'uploader': 'Gameloft', 'uploader': 'Gameloft',
'uploader_id': 'gameloft', 'uploader_id': 'gameloft',
'upload_date': '20130821', 'upload_date': '20140828',
'description': 'md5:87bd95f13d8be3e7da87a5f2c443106a', 'description': 'md5:c80da9ed3d83ae6d1876c834de03e1c4',
}, },
'params': { 'params': {
'skip_download': True, 'skip_download': True,

View File

@ -149,7 +149,7 @@ class TEDIE(SubtitlesInfoExtractor):
thumbnail = 'http://' + thumbnail thumbnail = 'http://' + thumbnail
return { return {
'id': video_id, 'id': video_id,
'title': talk_info['title'], 'title': talk_info['title'].strip(),
'uploader': talk_info['speaker'], 'uploader': talk_info['speaker'],
'thumbnail': thumbnail, 'thumbnail': thumbnail,
'description': self._og_search_description(webpage), 'description': self._og_search_description(webpage),