Browse Source

[gameinformer] Fix brightcove id extraction

master-ytdl-org
Peter Pitzulo 7 years ago
committed by Sergey M
parent
commit
c8064d4fab
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      youtube_dl/extractor/gameinformer.py

+ 7
- 2
youtube_dl/extractor/gameinformer.py View File

@ -24,5 +24,10 @@ class GameInformerIE(InfoExtractor):
def _real_extract(self, url):
display_id = self._match_id(url)
webpage = self._download_webpage(url, display_id)
brightcove_id = self._search_regex(r"getVideo\('[^']+video_id=(\d+)", webpage, 'brightcove id')
return self.url_result(self.BRIGHTCOVE_URL_TEMPLATE % brightcove_id, 'BrightcoveNew', brightcove_id)
brightcove_id = self._search_regex(
[r'<[^>]+\bid=["\']bc_(\d+)', r"getVideo\('[^']+video_id=(\d+)"],
webpage, 'brightcove id')
return self.url_result(
self.BRIGHTCOVE_URL_TEMPLATE % brightcove_id, 'BrightcoveNew',
brightcove_id)

Loading…
Cancel
Save