diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-11-27 19:56:32 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-11-27 19:56:32 +0700 |
commit | 83f1481baae72ca17364a12bec6ebcbe30234a3f (patch) | |
tree | b2dcaec34ad714cb05945cf4afd2aa0d533e3995 /youtube_dl/extractor/generic.py | |
parent | f25e1c8d8c145ea4044b56786256cd71f861cf62 (diff) |
[extractor/generic] Add support for webcaster.pro embeds
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-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 f9707c155..5aac65162 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -60,6 +60,7 @@ from .screenwavemedia import ScreenwaveMediaIE from .mtv import MTVServicesEmbeddedIE from .pladform import PladformIE from .videomore import VideomoreIE +from .webcaster import WebcasterFeedIE from .googledrive import GoogleDriveIE from .jwplatform import JWPlatformIE from .digiteka import DigitekaIE @@ -2140,6 +2141,11 @@ class GenericIE(InfoExtractor): if videomore_url: return self.url_result(videomore_url) + # Look for Webcaster embeds + webcaster_url = WebcasterFeedIE._extract_url(self, webpage) + if webcaster_url: + return self.url_result(webcaster_url, ie=WebcasterFeedIE.ie_key()) + # Look for Playwire embeds mobj = re.search( r'<script[^>]+data-config=(["\'])(?P<url>(?:https?:)?//config\.playwire\.com/.+?)\1', webpage) |