Fix problems with videos that do not have 720p mode

This commit is contained in:
Daniel Dumitran 2015-09-01 22:56:02 -07:00
parent ed49c2c0ac
commit cbeabd95e1

View File

@ -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)