1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-10 06:27:20 +08:00

Update regex for finding video_id.

www.france.tv site has been updated and previous regex didn't find the video_id any more. Proposed change fixes this.

Should solve  issue #20029.
This commit is contained in:
Triagoz 2019-02-27 21:44:18 +01:00 committed by GitHub
parent db1c3a9d3f
commit 441987f7f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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