diff options
author | Remita Amine <remitamine@gmail.com> | 2017-01-13 23:02:50 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2017-01-13 23:06:59 +0100 |
commit | 9837cb7507e0635755082a7fd2e748c4106fefc4 (patch) | |
tree | eceb8c1606aac698cd741a1263732aca8d165560 /youtube_dl/extractor/generic.py | |
parent | fb6a59205e3dc5bb1d37d50ac1161314c0d66cf1 (diff) |
[ooyala] add support for videos with embedToken(#11684)
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r-- | youtube_dl/extractor/generic.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 86dc79307..ac29ec600 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -1939,7 +1939,14 @@ class GenericIE(InfoExtractor): re.search(r'SBN\.VideoLinkset\.ooyala\([\'"](?P<ec>.{32})[\'"]\)', webpage) or re.search(r'data-ooyala-video-id\s*=\s*[\'"](?P<ec>.{32})[\'"]', webpage)) if mobj is not None: - return OoyalaIE._build_url_result(smuggle_url(mobj.group('ec'), {'domain': url})) + embed_token = self._search_regex( + r'embedToken[\'"]?\s*:\s*[\'"]([^\'"]+)', + webpage, 'ooyala embed token', default=None) + return OoyalaIE._build_url_result(smuggle_url( + mobj.group('ec'), { + 'domain': url, + 'embed_token': embed_token, + })) # Look for multiple Ooyala embeds on SBN network websites mobj = re.search(r'SBN\.VideoLinkset\.entryGroup\((\[.*?\])', webpage) |