mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 03:17:44 +03:00
Tumblr: fix title
This commit is contained in:
parent
58a2dc90ee
commit
70cd7b3bd9
@ -10,7 +10,9 @@ def tumblr_download(url, output_dir = '.', merge = True, info_only = False):
|
||||
html = get_html(url)
|
||||
html = parse.unquote(html).replace('\/', '/')
|
||||
|
||||
title = unescape_html(r1(r'<meta property="og:title" content="([^"]*)" />', html) or r1(r'<title>(.*)', html))
|
||||
title = unescape_html(r1(r'<meta property="og:title" content="([^"]*)" />', html) or
|
||||
r1(r'<meta property="og:description" content="([^"]*)" />', html) or
|
||||
r1(r'<title>([^<\n]*)', html)).replace('\n', '')
|
||||
real_url = r1(r'source src=\\x22([^\\]+)\\', html)
|
||||
if not real_url:
|
||||
real_url = r1(r'audio_file=([^&]+)&', html) + '?plead=please-dont-download-this-or-our-lawyers-wont-let-us-host-audio'
|
||||
|
Loading…
x
Reference in New Issue
Block a user