1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-06-30 11:02:54 -05:00

[generic] Detect ooyala videos (fixes #2013)

This commit is contained in:
Jaime Marquínez Ferrándiz
2013-12-19 20:28:52 +01:00
parent 7c86a5b864
commit c0d0b01f0e
3 changed files with 26 additions and 3 deletions

View File

@ -22,6 +22,11 @@ class OoyalaIE(InfoExtractor):
def _url_for_embed_code(embed_code):
return 'http://player.ooyala.com/player.js?embedCode=%s' % embed_code
@classmethod
def _build_url_result(cls, embed_code):
return cls.url_result(cls._url_for_embed_code(embed_code),
ie=cls.ie_key())
def _extract_result(self, info, more_info):
return {'id': info['embedCode'],
'ext': 'mp4',