diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-12-06 00:41:03 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-12-06 00:41:03 +0700 |
commit | 875ddd740902dd0de15d21939ef75fbfc2535f30 (patch) | |
tree | 10493a807d09df3ea46f993e8ba31f905ede1850 /youtube_dl | |
parent | 4afa4ff223365601603b6a1cc77eb9d96d8e629d (diff) |
[bloomberg] Add another video id regex (closes #11371)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/bloomberg.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/bloomberg.py b/youtube_dl/extractor/bloomberg.py index 2a8cd64b9..c5e11e8eb 100644 --- a/youtube_dl/extractor/bloomberg.py +++ b/youtube_dl/extractor/bloomberg.py @@ -45,7 +45,8 @@ class BloombergIE(InfoExtractor): name = self._match_id(url) webpage = self._download_webpage(url, name) video_id = self._search_regex( - r'["\']bmmrId["\']\s*:\s*(["\'])(?P<url>.+?)\1', + (r'["\']bmmrId["\']\s*:\s*(["\'])(?P<url>(?:(?!\1).)+)\1', + r'videoId\s*:\s*(["\'])(?P<url>(?:(?!\1).)+)\1'), webpage, 'id', group='url', default=None) if not video_id: bplayer_data = self._parse_json(self._search_regex( |