aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/ooyala.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <[email protected]>2013-12-19 20:28:52 +0100
committerJaime Marquínez Ferrándiz <[email protected]>2013-12-19 20:32:12 +0100
commitc0d0b01f0e12ce23f7a751ef05e52dabd3e4c1e7 (patch)
treebfe53d44c8739b21a6806f7089d5be9091611ac0 /youtube_dl/extractor/ooyala.py
parent7c86a5b86434640e03c8a96658a6af133e1221b4 (diff)
downloadyoutube-dl-c0d0b01f0e12ce23f7a751ef05e52dabd3e4c1e7.tar.gz
youtube-dl-c0d0b01f0e12ce23f7a751ef05e52dabd3e4c1e7.zip
[generic] Detect ooyala videos (fixes #2013)
Diffstat (limited to 'youtube_dl/extractor/ooyala.py')
-rw-r--r--youtube_dl/extractor/ooyala.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/extractor/ooyala.py b/youtube_dl/extractor/ooyala.py
index 1f7b4d2e7..d08e47734 100644
--- a/youtube_dl/extractor/ooyala.py
+++ b/youtube_dl/extractor/ooyala.py
@@ -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',