1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-22 12:53:21 +08:00

Make regex search more strict by only matching whitespace.

This commit is contained in:
Michael Tilbury 2019-05-02 13:43:15 -07:00
parent 9fea67be31
commit eaf1ef17dd

View File

@ -372,7 +372,7 @@ class FranceTVInfoIE(FranceTVBaseInfoExtractor):
for dailymotion_url in dailymotion_urls])
video_id = self._search_regex(
(r'player\.load[^;]+src:[^"\']*["\']([^"\']+)',
(r'player\.load[^;]+src:\s*["\']([^"\']+)',
r'id-video=([^@]+@[^"]+)',
r'<a[^>]+href="(?:https?:)?//videos\.francetv\.fr/video/([^@]+@[^"]+)"'),
webpage, 'video id')