mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 03:17:44 +03:00
Vimeo: default to download the best quality; fix #58
This commit is contained in:
parent
1aaf255b93
commit
bda672e404
@ -9,11 +9,14 @@ def vimeo_download_by_id(id, title = None, output_dir = '.', merge = True, info_
|
||||
|
||||
signature = r1(r'"signature":"([^"]+)"', html)
|
||||
timestamp = r1(r'"timestamp":([^,]+)', html)
|
||||
hd = r1(r',"hd":(\d+),', html)
|
||||
|
||||
title = r1(r'"title":"([^"]+)"', html)
|
||||
title = escape_file_path(title)
|
||||
|
||||
url = 'http://player.vimeo.com/play_redirect?clip_id=%s&sig=%s&time=%s' % (id, signature, timestamp)
|
||||
if hd == "1":
|
||||
url += '&quality=hd'
|
||||
type, ext, size = url_info(url, faker = True)
|
||||
|
||||
print_info(site_info, title, type, size)
|
||||
|
Loading…
x
Reference in New Issue
Block a user