Make regex search more strict by only matching whitespace.
This commit is contained in:
parent
9fea67be31
commit
eaf1ef17dd
@ -372,7 +372,7 @@ class FranceTVInfoIE(FranceTVBaseInfoExtractor):
|
|||||||
for dailymotion_url in dailymotion_urls])
|
for dailymotion_url in dailymotion_urls])
|
||||||
|
|
||||||
video_id = self._search_regex(
|
video_id = self._search_regex(
|
||||||
(r'player\.load[^;]+src:[^"\']*["\']([^"\']+)',
|
(r'player\.load[^;]+src:\s*["\']([^"\']+)',
|
||||||
r'id-video=([^@]+@[^"]+)',
|
r'id-video=([^@]+@[^"]+)',
|
||||||
r'<a[^>]+href="(?:https?:)?//videos\.francetv\.fr/video/([^@]+@[^"]+)"'),
|
r'<a[^>]+href="(?:https?:)?//videos\.francetv\.fr/video/([^@]+@[^"]+)"'),
|
||||||
webpage, 'video id')
|
webpage, 'video id')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user