mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[culturebox] Improve video id extraction (closes #14947)
This commit is contained in:
parent
51f2863357
commit
c38970ca10
1 changed files with 2 additions and 1 deletions
|
@ -356,6 +356,7 @@ def _real_extract(self, url):
|
|||
raise ExtractorError('Video %s is not available' % name, expected=True)
|
||||
|
||||
video_id, catalogue = self._search_regex(
|
||||
r'"https?://videos\.francetv\.fr/video/([^@]+@[^"]+)"', webpage, 'video id').split('@')
|
||||
r'["\'>]https?://videos\.francetv\.fr/video/([^@]+@.+?)["\'<]',
|
||||
webpage, 'video id').split('@')
|
||||
|
||||
return self._extract_video(video_id, catalogue)
|
||||
|
|
Loading…
Reference in a new issue