diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-11-28 22:39:36 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-11-28 22:39:36 +0600 |
commit | 7ad4258add964b2604ada611d380b5594126d85c (patch) | |
tree | b26004da2c9721358fd47d43e8b73ba2ac2b8f88 /youtube_dl/extractor | |
parent | 9945c4994c8cdbfa9971df942332f2c75bc2734d (diff) |
[bloomberg] Relax _VALID_URL even more (Closes #7685)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/bloomberg.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/youtube_dl/extractor/bloomberg.py b/youtube_dl/extractor/bloomberg.py index 11ace91dd..8b2f94211 100644 --- a/youtube_dl/extractor/bloomberg.py +++ b/youtube_dl/extractor/bloomberg.py @@ -6,7 +6,7 @@ from .common import InfoExtractor class BloombergIE(InfoExtractor): - _VALID_URL = r'https?://www\.bloomberg\.com/news/[^/]+/[^/]+/(?P<id>[^/?#]+)' + _VALID_URL = r'https?://(?:www\.)?bloomberg\.com/(?:[^/]+/)*(?P<id>[^/?#]+)' _TESTS = [{ 'url': 'http://www.bloomberg.com/news/videos/b/aaeae121-5949-481e-a1ce-4562db6f5df2', @@ -20,6 +20,9 @@ class BloombergIE(InfoExtractor): }, { 'url': 'http://www.bloomberg.com/news/articles/2015-11-12/five-strange-things-that-have-been-happening-in-financial-markets', 'only_matching': True, + }, { + 'url': 'http://www.bloomberg.com/politics/videos/2015-11-25/karl-rove-on-jeb-bush-s-struggles-stopping-trump', + 'only_matching': True, }] def _real_extract(self, url): |