1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-25 01:07:19 +00:00

[twitter] Fix several failed tests

This commit is contained in:
Yen Chi Hsuan 2016-02-21 16:57:56 +08:00
parent 445d72b8b5
commit acb6e97e6a

View file

@ -26,7 +26,7 @@ class TwitterCardIE(TwitterBaseIE):
_TESTS = [ _TESTS = [
{ {
'url': 'https://twitter.com/i/cards/tfw/v1/560070183650213889', 'url': 'https://twitter.com/i/cards/tfw/v1/560070183650213889',
'md5': '4fa26a35f9d1bf4b646590ba8e84be19', # MD5 checksums are different in different places
'info_dict': { 'info_dict': {
'id': '560070183650213889', 'id': '560070183650213889',
'ext': 'mp4', 'ext': 'mp4',
@ -48,7 +48,7 @@ class TwitterCardIE(TwitterBaseIE):
}, },
{ {
'url': 'https://twitter.com/i/cards/tfw/v1/654001591733886977', 'url': 'https://twitter.com/i/cards/tfw/v1/654001591733886977',
'md5': 'b6f35e8b08a0bec6c8af77a2f4b3a814', 'md5': 'd4724ffe6d2437886d004fa5de1043b3',
'info_dict': { 'info_dict': {
'id': 'dq4Oj5quskI', 'id': 'dq4Oj5quskI',
'ext': 'mp4', 'ext': 'mp4',
@ -68,8 +68,8 @@ class TwitterCardIE(TwitterBaseIE):
'ext': 'mp4', 'ext': 'mp4',
'upload_date': '20151113', 'upload_date': '20151113',
'uploader_id': '1189339351084113920', 'uploader_id': '1189339351084113920',
'uploader': '@ArsenalTerje', 'uploader': 'ArsenalTerje',
'title': 'Vine by @ArsenalTerje', 'title': 'Vine by ArsenalTerje',
}, },
'add_ie': ['Vine'], 'add_ie': ['Vine'],
} }
@ -142,7 +142,7 @@ class TwitterIE(InfoExtractor):
_TESTS = [{ _TESTS = [{
'url': 'https://twitter.com/freethenipple/status/643211948184596480', 'url': 'https://twitter.com/freethenipple/status/643211948184596480',
'md5': 'db6612ec5d03355953c3ca9250c97e5e', # MD5 checksums are different in different places
'info_dict': { 'info_dict': {
'id': '643211948184596480', 'id': '643211948184596480',
'ext': 'mp4', 'ext': 'mp4',