diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-06-24 23:19:50 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-06-24 23:19:50 +0600 |
commit | 1ac1c4c26ecdccb8c515aac634d965b89cbdabe7 (patch) | |
tree | c0e5ea9bd2edaadc1be3d07d8f30143e2f7c342a /youtube_dl/extractor | |
parent | d4f58034f7f3d959788d4fcf3812e24d3ba05f68 (diff) |
[extractor/generic] Add support for OnionStudios embeds (Closes #5841)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/generic.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 7769ffc5c..9c5125f38 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -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+[^"]+)[\'"]', |