diff options
| author | remitamine <remitamine@gmail.com> | 2015-09-11 04:46:21 +0100 | 
|---|---|---|
| committer | remitamine <remitamine@gmail.com> | 2015-09-11 04:46:21 +0100 | 
| commit | ed1269000f24a6ddc683a295ff402ef3ded5c4fb (patch) | |
| tree | b489421e91ec92e42961e0d3f07ff1ed478dc639 /youtube_dl/extractor/generic.py | |
| parent | 689fb748ee1ba8e61f99d21a3bcb1bc83b708649 (diff) | |
[brightcove] add support for brightcove in page embed(fixes #6824)
Diffstat (limited to 'youtube_dl/extractor/generic.py')
| -rw-r--r-- | youtube_dl/extractor/generic.py | 21 | 
1 files changed, 20 insertions, 1 deletions
| diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index ec748ed9f..7a3a7f66b 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -29,7 +29,10 @@ from ..utils import (      url_basename,      xpath_text,  ) -from .brightcove import BrightcoveIE +from .brightcove import ( +    BrightcoveIE, +    BrightcoveInPageEmbedIE, +)  from .nbc import NBCSportsVPlayerIE  from .ooyala import OoyalaIE  from .rutv import RUTVIE @@ -1012,6 +1015,17 @@ class GenericIE(InfoExtractor):                  'ext': 'mp4',                  'title': 'cinemasnob',              }, +        }, +        # BrightcoveInPageEmbed embed +        { +            'url': 'http://www.geekandsundry.com/tabletop-bonus-wils-final-thoughts-on-dread/', +            'info_dict': { +                'id': '4238694884001', +                'ext': 'flv', +                'title': 'Tabletop: Dread, Last Thoughts', +                'description': 'Tabletop: Dread, Last Thoughts', +                'duration': 51690, +            },          }      ] @@ -1288,6 +1302,11 @@ class GenericIE(InfoExtractor):                  'entries': entries,              } +        # Look for Brightcove In Page Embed: +        brightcove_in_page_embed_url = BrightcoveInPageEmbedIE._extract_url(webpage) +        if brightcove_in_page_embed_url: +            return self.url_result(brightcove_in_page_embed_url, 'BrightcoveInPageEmbed') +          # Look for embedded rtl.nl player          matches = re.findall(              r'<iframe[^>]+?src="((?:https?:)?//(?:www\.)?rtl\.nl/system/videoplayer/[^"]+(?:video_)?embed[^"]+)"', | 
