diff options
author | Sergey M․ <dstftw@gmail.com> | 2019-02-16 22:45:53 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2019-02-16 22:45:53 +0700 |
commit | ba2e3730d125eab952eded3bb7749d479a2262d3 (patch) | |
tree | b1ad570bfbfdd085015fc6f9cf36ea41c7ebfe74 /youtube_dl/extractor/noovo.py | |
parent | 2b2da3ba10cc325d00b665aae87f0fa8508bccdf (diff) |
[noovo] Fix extraction (closes #19230)
Diffstat (limited to 'youtube_dl/extractor/noovo.py')
-rw-r--r-- | youtube_dl/extractor/noovo.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/youtube_dl/extractor/noovo.py b/youtube_dl/extractor/noovo.py index 974de3c3e..b40770d07 100644 --- a/youtube_dl/extractor/noovo.py +++ b/youtube_dl/extractor/noovo.py @@ -57,7 +57,8 @@ class NoovoIE(InfoExtractor): webpage = self._download_webpage(url, video_id) - bc_url = BrightcoveNewIE._extract_url(self, webpage) + brightcove_id = self._search_regex( + r'data-video-id=["\'](\d+)', webpage, 'brightcove id') data = self._parse_json( self._search_regex( @@ -89,7 +90,10 @@ class NoovoIE(InfoExtractor): return { '_type': 'url_transparent', 'ie_key': BrightcoveNewIE.ie_key(), - 'url': smuggle_url(bc_url, {'geo_countries': ['CA']}), + 'url': smuggle_url( + self.BRIGHTCOVE_URL_TEMPLATE % brightcove_id, + {'geo_countries': ['CA']}), + 'id': brightcove_id, 'title': title, 'description': description, 'series': series, |