From: Sergey M․ Date: Thu, 18 Feb 2016 16:09:21 +0000 (+0600) Subject: [francetv] Improve video id regex (Closes #8563) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=f3f9cd9234aada1d677517e3042bd9312610081d;p=youtube-dl [francetv] Improve video id regex (Closes #8563) --- diff --git a/youtube_dl/extractor/francetv.py b/youtube_dl/extractor/francetv.py index 8e60cf60f..3f4ac3093 100644 --- a/youtube_dl/extractor/francetv.py +++ b/youtube_dl/extractor/francetv.py @@ -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)