]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[extractor/generic] Support Libsyn embeds
authorSergey M․ <dstftw@gmail.com>
Sun, 22 Mar 2015 02:18:13 +0000 (08:18 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 22 Mar 2015 02:18:13 +0000 (08:18 +0600)
youtube_dl/extractor/generic.py

index 8716e4503ad4ae61a57745ec1eafe96fe5e25ddc..84e8f14b26233f290a3b0b099de7d5093697c0b7 100644 (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