[ooyala] prefer ipad url

It has better quality with m3u8 manifests
This commit is contained in:
Jaime Marquínez Ferrándiz 2013-09-16 20:16:52 +02:00
parent 4b6462fc1e
commit 4dc0ff3ecf

View file

@ -22,7 +22,7 @@ def _extract_result(self, info, more_info):
return {'id': info['embedCode'], return {'id': info['embedCode'],
'ext': 'mp4', 'ext': 'mp4',
'title': unescapeHTML(info['title']), 'title': unescapeHTML(info['title']),
'url': info['url'], 'url': info.get('ipad_url') or info['url'],
'description': unescapeHTML(more_info['description']), 'description': unescapeHTML(more_info['description']),
'thumbnail': more_info['promo'], 'thumbnail': more_info['promo'],
} }