mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
Vine: fixed
This commit is contained in:
parent
55fc2a6bd4
commit
75b6b57fca
@ -10,7 +10,7 @@ def vine_download(url, output_dir='.', merge=True, info_only=False):
|
||||
title1 = r1(r'<meta property="twitter:title" content="([^"]*)"', html)
|
||||
title2 = r1(r'<meta property="og:title" content="([^"]*)"', html)
|
||||
title = "%s - %s" % (title1, title2)
|
||||
url = r1(r'<source src="([^"]*)"', html)
|
||||
url = r1(r'<source src="([^"]*)"', html) or r1(r'<meta itemprop="contentURL" content="([^"]*)"', html)
|
||||
if url[0:2] == "//":
|
||||
url = "http:" + url
|
||||
type, ext, size = url_info(url)
|
||||
|
Loading…
Reference in New Issue
Block a user