Browse Source

[bloomberg] Improve video id regex

totalwebcasting
Sergey M․ 9 years ago
parent
commit
4191fdf147
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      youtube_dl/extractor/bloomberg.py

+ 3
- 1
youtube_dl/extractor/bloomberg.py View File

@ -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<url>.+?)\1',
webpage, 'id', group='url')
title = re.sub(': Video$', '', self._og_search_title(webpage))
embed_info = self._download_json(


Loading…
Cancel
Save