]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[culturebox] Improve video id extraction (closes #14947)
authorSergey M․ <dstftw@gmail.com>
Sun, 10 Dec 2017 15:46:21 +0000 (22:46 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 10 Dec 2017 15:46:21 +0000 (22:46 +0700)
youtube_dl/extractor/francetv.py

index 80c5970156212c6ea79f289008b77a1bb5310ae2..095bb3954c523852be8d7d09d498d324d429c826 100644 (file)
@@ -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)