projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4afa4ff
)
[bloomberg] Add another video id regex (closes #11371)
author
Sergey M․
<dstftw@gmail.com>
Mon, 5 Dec 2016 17:41:03 +0000
(
00:41
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 5 Dec 2016 17:41:03 +0000
(
00:41
+0700)
youtube_dl/extractor/bloomberg.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/bloomberg.py
b/youtube_dl/extractor/bloomberg.py
index 2a8cd64b99d2551da9777aaa259d356d8cad51ed..c5e11e8eb81151ca8dd07be04c1fe2005a26bfa9 100644
(file)
--- 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(