logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 9d9a8676dc02101069cf5fa9862500d39352538c
parent db1c3a9d3f202cc6f3fd83a2a918869e7c0d147f
Author: Sergey M․ <dstftw@gmail.com>
Date:   Thu, 28 Feb 2019 23:26:52 +0700

[francetv:site] Extend video id regex (closes #20029, closes #20071)

Diffstat:

Myoutube_dl/extractor/francetv.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/francetv.py b/youtube_dl/extractor/francetv.py @@ -271,7 +271,7 @@ class FranceTVSiteIE(FranceTVBaseInfoExtractor): catalogue = None video_id = self._search_regex( - r'data-main-video=(["\'])(?P<id>(?:(?!\1).)+)\1', + r'(?:data-main-video\s*=|videoId\s*:)\s*(["\'])(?P<id>(?:(?!\1).)+)\1', webpage, 'video id', default=None, group='id') if not video_id: