[tumblr] Replaced test URL for HD video as old one lead to 404

This commit is contained in:
Oli Allen 2015-10-02 08:33:16 +01:00
parent 9694d45e74
commit 27a4d7baa1

View File

@ -7,6 +7,7 @@ from .common import InfoExtractor
from ..utils import RegexNotFoundError from ..utils import RegexNotFoundError
class TumblrIE(InfoExtractor): class TumblrIE(InfoExtractor):
_VALID_URL = r'http://(?P<blog_name>.*?)\.tumblr\.com/(?:post|video)/(?P<id>[0-9]+)(?:$|[/?#])' _VALID_URL = r'http://(?P<blog_name>.*?)\.tumblr\.com/(?:post|video)/(?P<id>[0-9]+)(?:$|[/?#])'
_TESTS = [{ _TESTS = [{
@ -30,28 +31,28 @@ class TumblrIE(InfoExtractor):
'thumbnail': 're:http://.*\.jpg', 'thumbnail': 're:http://.*\.jpg',
} }
}, { }, {
'url': 'http://larastonesbitch.tumblr.com/post/130035771559/honestlyiconic', 'url': 'http://hdvideotest.tumblr.com/post/130323439814/test-description-for-my-hd-video',
'md5': 'f0c88985bd7e85d13603771a8647f270', 'md5': '99a84522f60972bf064a0b80f87bcbb5',
'resolution': 'hd', 'resolution': 'hd',
'info_dict': { 'info_dict': {
'id': '130035771559', 'id': '130323439814',
'ext': 'mp4', 'ext': 'mp4',
'title': 'larastonesbitch', 'title': 'HD Video Testing \u2014 Test description for my HD video',
'description': 'md5:d9184c8b9396bb5b027b3d8658a43de0', 'description': 'md5:97cc3ab5fcd27ee4af6356701541319c',
'thumbnail': 're:http://.*\.jpg', 'thumbnail': 're:http://.*\.jpg',
}, },
'params': { 'params': {
'format': 'sd', 'format': 'sd',
}, },
}, { }, {
'url': 'http://larastonesbitch.tumblr.com/post/130035771559/honestlyiconic', 'url': 'http://hdvideotest.tumblr.com/post/130323439814/test-description-for-my-hd-video',
'md5': 'a88dea4c03a9cc208cf44eb2dd12248b', 'md5': '7ae503065ad150122dc3089f8cf1546c',
'resolution': 'hd', 'resolution': 'hd',
'info_dict': { 'info_dict': {
'id': '130035771559', 'id': '130323439814',
'ext': 'mp4', 'ext': 'mp4',
'title': 'larastonesbitch', 'title': 'HD Video Testing \u2014 Test description for my HD video',
'description': 'md5:d9184c8b9396bb5b027b3d8658a43de0', 'description': 'md5:97cc3ab5fcd27ee4af6356701541319c',
'thumbnail': 're:http://.*\.jpg', 'thumbnail': 're:http://.*\.jpg',
}, },
'params': { 'params': {