[francetv] Improve video id regex (Closes #8563)
authorSergey M․ <dstftw@gmail.com>
Thu, 18 Feb 2016 16:09:21 +0000 (22:09 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 18 Feb 2016 16:09:21 +0000 (22:09 +0600)
youtube_dl/extractor/francetv.py

index 8e60cf60f7f7be74c751c037bcae31fb0e1f6510..3f4ac30939cd38a7294f0d8eb815cb58c6f2fbcd 100644 (file)
@@ -289,7 +289,7 @@ class FranceTVIE(FranceTVBaseInfoExtractor):
         video_id = self._match_id(url)
         webpage = self._download_webpage(url, video_id)
         video_id, catalogue = self._html_search_regex(
-            r'href="http://videos?\.francetv\.fr/video/([^@]+@[^"]+)"',
+            r'(?:href=|player\.setVideo\(\s*)"http://videos?\.francetv\.fr/video/([^@]+@[^"]+)"',
             webpage, 'video ID').split('@')
         return self._extract_video(video_id, catalogue)