mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-05 04:27:05 +01:00
[bloomberg] Add another video id regex (closes #11371)
This commit is contained in:
parent
4afa4ff223
commit
875ddd7409
@ -45,7 +45,8 @@ def _real_extract(self, url):
|
||||
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(
|
||||
|
Loading…
Reference in New Issue
Block a user