diff --git a/src/you_get/downloader/tumblr.py b/src/you_get/downloader/tumblr.py index a4c437d9..8a2e2ed1 100644 --- a/src/you_get/downloader/tumblr.py +++ b/src/you_get/downloader/tumblr.py @@ -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'', html) or r1(r'(.*)', 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'