mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
[tumblr] fix #901 (1)
This commit is contained in:
parent
446f90f559
commit
a9f063f2e8
@ -66,7 +66,7 @@ def tumblr_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
|
||||
if not real_url:
|
||||
real_url = r1(r'<source src="([^"]*)"', html)
|
||||
if not real_url:
|
||||
iframe_url = r1(r'<iframe [^>]+src=[\'"]([^\'"]*)[\'"]', html)
|
||||
iframe_url = r1(r'<iframe[^>]+src=[\'"]([^\'"]*)[\'"]', html)
|
||||
if iframe_url[:2] == '//': iframe_url = 'http:' + iframe_url
|
||||
if re.search(r'player\.vimeo\.com', iframe_url):
|
||||
vimeo_download(iframe_url, output_dir, merge=merge, info_only=info_only,
|
||||
|
Loading…
Reference in New Issue
Block a user