1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-21 19:03:02 +08:00

[extractor/generic] Support Libsyn embeds

This commit is contained in:
Sergey M․ 2015-03-22 08:18:13 +06:00
parent a1d0aa7b88
commit cefdf970cc

View File

@ -1013,6 +1013,12 @@ class GenericIE(InfoExtractor):
if mobj is not None:
return self.url_result(mobj.group('url'))
# Look for Libsyn player
mobj = re.search(
r'<iframe[^>]+src=(["\'])(?P<url>(?:https?:)?//html5-player\.libsyn\.com/embed/.+?)\1', webpage)
if mobj is not None:
return self.url_result(mobj.group('url'))
# Look for Ooyala videos
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