[extractor/generic] Expand ooyala regex (Closes #6485)
authorSergey M․ <dstftw@gmail.com>
Fri, 7 Aug 2015 19:55:59 +0000 (01:55 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 7 Aug 2015 19:55:59 +0000 (01:55 +0600)
youtube_dl/extractor/generic.py

index 6df89f81403a34a5c12b3b37110e8258e3f4499d..649c0bce6c6194006fd45bae2a3cc89150934d62 100644 (file)
@@ -1320,7 +1320,7 @@ class GenericIE(InfoExtractor):
             return self.url_result(mobj.group('url'))
 
         # Look for Ooyala videos
-        mobj = (re.search(r'player\.ooyala\.com/[^"?]+\?[^"]*?(?:embedCode|ec)=(?P<ec>[^"&]+)', webpage) or
+        mobj = (re.search(r'player\.ooyala\.com/[^"?]+[?#][^"]*?(?:embedCode|ec)=(?P<ec>[^"&]+)', webpage) or
                 re.search(r'OO\.Player\.create\([\'"].*?[\'"],\s*[\'"](?P<ec>.{32})[\'"]', webpage) or
                 re.search(r'SBN\.VideoLinkset\.ooyala\([\'"](?P<ec>.{32})[\'"]\)', webpage) or
                 re.search(r'data-ooyala-video-id\s*=\s*[\'"](?P<ec>.{32})[\'"]', webpage))