aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/brightcove.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2015-10-31 19:36:04 +0100
committerremitamine <remitamine@gmail.com>2015-10-31 19:36:04 +0100
commit9550ca506fccf9c9d795816cc0a7817ff262ef45 (patch)
tree7b50bcf00d5badf5001c029de0de029818c88cc1 /youtube_dl/extractor/brightcove.py
parentc01e1a96aa964ef6d5f0bf7675dbe34096b1d2c8 (diff)
downloadyoutube-dl-9550ca506fccf9c9d795816cc0a7817ff262ef45.tar.xz
[utils] change extract_attributes to work in python 2
Diffstat (limited to 'youtube_dl/extractor/brightcove.py')
-rw-r--r--youtube_dl/extractor/brightcove.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py
index b41cee91b..c6ad1d065 100644
--- a/youtube_dl/extractor/brightcove.py
+++ b/youtube_dl/extractor/brightcove.py
@@ -383,8 +383,7 @@ class BrightcoveInPageEmbedIE(InfoExtractor):
return None
def _real_extract(self, url):
- mobj = re.match(self._VALID_URL, url)
- account_id, player_id, embed, video_id = mobj.groups()
+ account_id, player_id, embed, video_id = re.match(self._VALID_URL, url).groups()
webpage = self._download_webpage('http://players.brightcove.net/%s/%s_%s/index.min.js' % (account_id, player_id, embed), video_id)