diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-05-15 23:09:34 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-05-15 23:09:34 +0600 |
commit | d40a3b5b55973d7ed65538179b71990c1828845a (patch) | |
tree | 034eb503679b841434d1e86890412566d8ebce2f /youtube_dl/extractor/generic.py | |
parent | ef28a6cb26630f8f198a72eee34a2b5c8bd2f802 (diff) |
[generic] Add support for sportbox 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 3d756e848..9230c3bb0 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -32,6 +32,7 @@ from .brightcove import BrightcoveIE from .nbc import NBCSportsVPlayerIE from .ooyala import OoyalaIE from .rutv import RUTVIE +from .sportbox import SportBoxEmbedIE from .smotri import SmotriIE from .condenast import CondeNastIE from .udn import UDNEmbedIE @@ -1229,6 +1230,11 @@ class GenericIE(InfoExtractor): if rutv_url: return self.url_result(rutv_url, 'RUTV') + # Look for embedded SportBox player + sportbox_urls = SportBoxEmbedIE._extract_urls(webpage) + if sportbox_urls: + return _playlist_from_matches(sportbox_urls, ie='SportBoxEmbed') + # Look for embedded TED player mobj = re.search( r'<iframe[^>]+?src=(["\'])(?P<url>https?://embed(?:-ssl)?\.ted\.com/.+?)\1', webpage) |