2
0
mirror of https://gitea.eponym.info/Mirrors/youtube-dl synced 2025-08-31 03:25:11 +00:00

[culturebox] Improve video id extraction (closes #14947)

This commit is contained in:
Sergey M․
2017-12-10 22:46:21 +07:00
parent 51f2863357
commit c38970ca10

View File

@@ -356,6 +356,7 @@ class CultureboxIE(FranceTVBaseInfoExtractor):
raise ExtractorError('Video %s is not available' % name, expected=True) raise ExtractorError('Video %s is not available' % name, expected=True)
video_id, catalogue = self._search_regex( 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) return self._extract_video(video_id, catalogue)