1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-10 06:27:20 +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

@ -271,9 +271,14 @@ class FranceTVSiteIE(FranceTVBaseInfoExtractor):
catalogue = None
video_id = self._search_regex(
r'videoId:\s*(["\'])(?P<id>(?:(?!\1).)+)\1',
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')
if not video_id:
video_id, catalogue = self._html_search_regex(
r'(?:href=|player\.setVideo\(\s*)"http://videos?\.francetv\.fr/video/([^@]+@[^"]+)"',