mirror of
https://github.com/soimort/you-get.git
synced 2025-02-02 16:24:00 +03:00
add support for Tumblr audios (fix #50)
This commit is contained in:
parent
7c5f267e2a
commit
f58ff20862
@ -1,6 +1,15 @@
|
|||||||
Changelog
|
Changelog
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
0.3dev-20121228
|
||||||
|
---------------
|
||||||
|
|
||||||
|
*Date: 2012-12-28*
|
||||||
|
|
||||||
|
* Add support for:
|
||||||
|
- Xiami
|
||||||
|
- Tumblr audios
|
||||||
|
|
||||||
0.3dev-20121221
|
0.3dev-20121221
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
|
@ -10,8 +10,10 @@ def tumblr_download(url, output_dir = '.', merge = True, info_only = False):
|
|||||||
html = get_html(url)
|
html = get_html(url)
|
||||||
html = parse.unquote(html).replace('\/', '/')
|
html = parse.unquote(html).replace('\/', '/')
|
||||||
|
|
||||||
title = r1(r'<title>(.*)</title>', html) or r1(r'<title>(.*)\n', html)
|
title = unescape_html(r1(r'<meta property="og:title" content="([^"]*)" />', html))
|
||||||
real_url = r1(r'source src=\\x22([^\\]+)\\', html)
|
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'
|
||||||
|
|
||||||
type, ext, size = url_info(real_url)
|
type, ext, size = url_info(real_url)
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
__version__ = '0.3dev-20121221'
|
__version__ = '0.3dev-20121228'
|
||||||
__date__ = '2012-12-21'
|
__date__ = '2012-12-28'
|
||||||
|
Loading…
Reference in New Issue
Block a user