mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-29 19:47:54 +01:00
[francetv] Improve video id regex (Closes #8563)
This commit is contained in:
parent
ebf1b291d0
commit
f3f9cd9234
@ -289,7 +289,7 @@ class FranceTVIE(FranceTVBaseInfoExtractor):
|
|||||||
video_id = self._match_id(url)
|
video_id = self._match_id(url)
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
video_id, catalogue = self._html_search_regex(
|
video_id, catalogue = self._html_search_regex(
|
||||||
r'href="http://videos?\.francetv\.fr/video/([^@]+@[^"]+)"',
|
r'(?:href=|player\.setVideo\(\s*)"http://videos?\.francetv\.fr/video/([^@]+@[^"]+)"',
|
||||||
webpage, 'video ID').split('@')
|
webpage, 'video ID').split('@')
|
||||||
return self._extract_video(video_id, catalogue)
|
return self._extract_video(video_id, catalogue)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user