mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 08:43: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*"(.+?)",')
|
title = match1(html, r'"title"\s*:\s*"(.+?)",')
|
||||||
|
|
||||||
for quality in ['720','480','380','240','auto']:
|
for quality in ['720','480','380','240','auto']:
|
||||||
|
try:
|
||||||
real_url = info[quality][0]["url"]
|
real_url = info[quality][0]["url"]
|
||||||
if real_url:
|
if real_url:
|
||||||
break
|
break
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
type, ext, size = url_info(real_url)
|
type, ext, size = url_info(real_url)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user