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:
parent
441987f7f0
commit
01c6c7b8a1
@ -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/([^@]+@[^"]+)"',
|
||||
|
Loading…
x
Reference in New Issue
Block a user