mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 11:24:02 +03:00
[tumblr] squanch that
This commit is contained in:
parent
fcdfce68d2
commit
caabb083f7
@ -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'<meta property="og:description" content="([^"]*)" />', html) or
|
||||||
r1(r'<title>([^<\n]*)', html) or url.split("/")[4]).replace('\n', '')
|
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)
|
print_info(site_info, title, type, size)
|
||||||
if not info_only:
|
if not info_only:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user