[extractor/generic] Add support for OnionStudios embeds (Closes #5841)
authorSergey M․ <dstftw@gmail.com>
Wed, 24 Jun 2015 17:19:50 +0000 (23:19 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 24 Jun 2015 17:19:50 +0000 (23:19 +0600)
youtube_dl/extractor/generic.py

index 7769ffc5c5f425ce04dc92147c77803291f0fdd5..9c5125f38037f8897a7bad8af16398e953fc7afe 100644 (file)
@@ -46,6 +46,7 @@ from .pornhub import PornHubIE
 from .xhamster import XHamsterEmbedIE
 from .vimeo import VimeoIE
 from .dailymotion import DailymotionCloudIE
+from .onionstudios import OnionStudiosIE
 
 
 class GenericIE(InfoExtractor):
@@ -1532,6 +1533,11 @@ class GenericIE(InfoExtractor):
         if dmcloud_url:
             return self.url_result(dmcloud_url, 'DailymotionCloud')
 
+        # Look for OnionStudios embeds
+        onionstudios_url = OnionStudiosIE._extract_url(webpage)
+        if onionstudios_url:
+            return self.url_result(onionstudios_url)
+
         # Look for AdobeTVVideo embeds
         mobj = re.search(
             r'<iframe[^>]+src=[\'"]((?:https?:)?//video\.tv\.adobe\.com/v/\d+[^"]+)[\'"]',