aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-12-10 22:46:21 +0700
committerSergey M․ <dstftw@gmail.com>2017-12-10 22:46:21 +0700
commitc38970ca10fc8c8e3ba05019d5f73ff235de9fc8 (patch)
tree3f59b53f1b7feaebe3c891cd44f5a4212edc0516
parent51f2863357af55dfe026bfe47808bf104e7eebf9 (diff)
[culturebox] Improve video id extraction (closes #14947)
-rw-r--r--youtube_dl/extractor/francetv.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/francetv.py b/youtube_dl/extractor/francetv.py
index 80c597015..095bb3954 100644
--- a/youtube_dl/extractor/francetv.py
+++ b/youtube_dl/extractor/francetv.py
@@ -356,6 +356,7 @@ class CultureboxIE(FranceTVBaseInfoExtractor):
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)