mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 11:24:02 +03:00
Vine: fixed
This commit is contained in:
parent
a1f635df94
commit
127019d437
@ -8,7 +8,9 @@ def vine_download(url, output_dir = '.', merge = True, info_only = False):
|
|||||||
html = get_html(url)
|
html = get_html(url)
|
||||||
|
|
||||||
title = r1(r'<meta property="og:title" content="([^"]*)"', html)
|
title = r1(r'<meta property="og:title" content="([^"]*)"', html)
|
||||||
url = "http:" + r1(r'<source src="([^"]*)"', html)
|
url = r1(r'<source src="([^"]*)"', html)
|
||||||
|
if url[0:2] == "//":
|
||||||
|
url = "http:" + url
|
||||||
type, ext, size = url_info(url)
|
type, ext, size = url_info(url)
|
||||||
|
|
||||||
print_info(site_info, title, type, size)
|
print_info(site_info, title, type, size)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user