[GameInformer] Fix brightcove_id regex.

This commit is contained in:
Peter Pitzulo 2018-01-24 23:06:33 -05:00
parent 9d6458a206
commit 559e40be2d

View File

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