diff options
author | Sergey M․ <dstftw@gmail.com> | 2021-03-30 03:37:43 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2021-03-30 03:37:43 +0700 |
commit | 287e50b56b4c71da8fd0c3ffdeca9bff5ab0b005 (patch) | |
tree | 891d1e2c8ba8156731d43ce0dd661d0f6335de3d /youtube_dl | |
parent | da762c4e329f6158956ddd51ac294e9183e5ce89 (diff) |
[francetvinfo] Improve video id extraction (closes #28584)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/francetv.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/francetv.py b/youtube_dl/extractor/francetv.py index 3ca415077..7cc88bf18 100644 --- a/youtube_dl/extractor/francetv.py +++ b/youtube_dl/extractor/francetv.py @@ -399,7 +399,8 @@ class FranceTVInfoIE(FranceTVBaseInfoExtractor): video_id = self._search_regex( (r'player\.load[^;]+src:\s*["\']([^"\']+)', r'id-video=([^@]+@[^"]+)', - r'<a[^>]+href="(?:https?:)?//videos\.francetv\.fr/video/([^@]+@[^"]+)"'), + r'<a[^>]+href="(?:https?:)?//videos\.francetv\.fr/video/([^@]+@[^"]+)"', + r'data-id=["\']([\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12})'), webpage, 'video id') return self._make_url_result(video_id) |