mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 11:24:02 +03:00
Google+: download original video, fix #94
This commit is contained in:
parent
1ca750ae55
commit
0773a1466e
@ -20,8 +20,9 @@ def googleplus_download(url, output_dir = '.', merge = True, info_only = False):
|
|||||||
html = get_html(url2)
|
html = get_html(url2)
|
||||||
html = parse.unquote(html.replace('\/', '/'))
|
html = parse.unquote(html.replace('\/', '/'))
|
||||||
|
|
||||||
|
real_url = unicodize(r1(r'"(https://video.googleusercontent.com/[^"]*)"', html).replace('\/', '/'))
|
||||||
|
if not real_url:
|
||||||
url_data = re.findall(r'(\[[^\[\"]+\"http://redirector.googlevideo.com/.*\"\])', html)
|
url_data = re.findall(r'(\[[^\[\"]+\"http://redirector.googlevideo.com/.*\"\])', html)
|
||||||
|
|
||||||
for itag in [
|
for itag in [
|
||||||
'38',
|
'38',
|
||||||
'46', '37',
|
'46', '37',
|
||||||
@ -45,7 +46,8 @@ def googleplus_download(url, output_dir = '.', merge = True, info_only = False):
|
|||||||
break
|
break
|
||||||
real_url = unicodize(real_url)
|
real_url = unicodize(real_url)
|
||||||
|
|
||||||
type, ext, size = url_info(real_url)
|
_, _, size = url_info(real_url)
|
||||||
|
type, ext = 'video/mp4', 'mp4'
|
||||||
|
|
||||||
print_info(site_info, title, type, size)
|
print_info(site_info, title, type, size)
|
||||||
if not info_only:
|
if not info_only:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user