[tumblr] squanch that

This commit is contained in:
Mort Yao 2018-09-16 14:34:48 +02:00
parent fcdfce68d2
commit caabb083f7
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -121,7 +121,11 @@ def tumblr_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
r1(r'<meta property="og:description" content="([^"]*)" />', html) or
r1(r'<title>([^<\n]*)', html) or url.split("/")[4]).replace('\n', '')
type, ext, size = url_info(real_url)
# this is better
vcode = r1(r'tumblr_(\w+)', real_url)
real_url = 'https://vt.media.tumblr.com/tumblr_%s.mp4' % vcode
type, ext, size = url_info(real_url, faker=True)
print_info(site_info, title, type, size)
if not info_only: