From: Sergey M․ Date: Sat, 28 Nov 2015 16:41:39 +0000 (+0600) Subject: [bloomberg] Improve video id regex X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=4191fdf147729728ca9c487f25ca66bf3d037cd5;p=youtube-dl [bloomberg] Improve video id regex --- diff --git a/youtube_dl/extractor/bloomberg.py b/youtube_dl/extractor/bloomberg.py index b6197d3f1..c28ed0c79 100644 --- a/youtube_dl/extractor/bloomberg.py +++ b/youtube_dl/extractor/bloomberg.py @@ -28,7 +28,9 @@ class BloombergIE(InfoExtractor): def _real_extract(self, url): name = self._match_id(url) webpage = self._download_webpage(url, name) - video_id = self._search_regex(r'"bmmrId":"(.+?)"', webpage, 'id') + video_id = self._search_regex( + r'["\']bmmrId["\']\s*:\s*(["\'])(?P.+?)\1', + webpage, 'id', group='url') title = re.sub(': Video$', '', self._og_search_title(webpage)) embed_info = self._download_json(