From: Sergey M․ Date: Sun, 10 Dec 2017 15:46:21 +0000 (+0700) Subject: [culturebox] Improve video id extraction (closes #14947) X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=c38970ca10fc8c8e3ba05019d5f73ff235de9fc8;p=youtube-dl [culturebox] Improve video id extraction (closes #14947) --- 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)