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

Restores original regex.

This commit is contained in:
Triagoz 2019-02-27 23:50:26 +01:00
parent 441987f7f0
commit 01c6c7b8a1

View File

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