mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 00:33:58 +03:00
Fix problems with videos that do not have 720p mode
This commit is contained in:
parent
ed49c2c0ac
commit
cbeabd95e1
@ -13,9 +13,12 @@ def dailymotion_download(url, output_dir = '.', merge = True, info_only = False)
|
||||
title = match1(html, r'"title"\s*:\s*"(.+?)",')
|
||||
|
||||
for quality in ['720','480','380','240','auto']:
|
||||
try:
|
||||
real_url = info[quality][0]["url"]
|
||||
if real_url:
|
||||
break
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
type, ext, size = url_info(real_url)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user