mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 03:17:44 +03:00
Dailymotion: default to download the best quality; fix #72
This commit is contained in:
parent
662084672b
commit
efdc98b459
@ -11,7 +11,10 @@ def dailymotion_download(url, output_dir = '.', merge = True, info_only = False)
|
||||
title = r1(r'meta property="og:title" content="([^"]+)"', html)
|
||||
title = escape_file_path(title)
|
||||
|
||||
real_url = r1(r',\"sdURL\"\:\"([^\"]+?)\",', html)
|
||||
for quality in ['hd720URL', 'hqURL', 'sdURL']:
|
||||
real_url = r1(r',\"' + quality + '\"\:\"([^\"]+?)\",', html)
|
||||
if real_url:
|
||||
break
|
||||
type, ext, size = url_info(real_url)
|
||||
|
||||
print_info(site_info, title, type, size)
|
||||
|
Loading…
x
Reference in New Issue
Block a user