aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Pitzulo <pongopeter826@gmail.com>2018-02-07 09:40:48 -0500
committerSergey M <dstftw@gmail.com>2018-02-07 21:40:48 +0700
commitc8064d4fab988d42cb400bbe26965f3078522da4 (patch)
treefa8c4e61c18ca6d569d07b45e197ebfcb9ae246b
parentfde677fed4eb04a493abed333e437bb43786f952 (diff)
downloadyoutube-dl-c8064d4fab988d42cb400bbe26965f3078522da4.tar.xz
[gameinformer] Fix brightcove id extraction
-rw-r--r--youtube_dl/extractor/gameinformer.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/youtube_dl/extractor/gameinformer.py b/youtube_dl/extractor/gameinformer.py
index a66e309de..239c1961d 100644
--- a/youtube_dl/extractor/gameinformer.py
+++ b/youtube_dl/extractor/gameinformer.py
@@ -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)
+