Skip to content

Commit

Permalink
[noovo] Fix extraction (closes #19230)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Feb 16, 2019
1 parent 2b2da3b commit ba2e373
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions youtube_dl/extractor/noovo.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def _real_extract(self, url):

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(
Expand Down Expand Up @@ -89,7 +90,10 @@ def _real_extract(self, url):
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,
Expand Down

0 comments on commit ba2e373

Please sign in to comment.