summaryrefslogtreecommitdiffhomepage
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2021-04-25 22:52:28 +0700
committerSergey M․ <[email protected]>2021-04-25 22:52:28 +0700
commit57eaaff5cf1ae63d4e3ae89f301c0f9b3e86bb55 (patch)
treebcd37df06c0330a99ab0fec0185fea120b2b2fa4 /youtube_dl
parent999329cf6b29878d054c6ccdd24573489a2886d5 (diff)
downloadyoutube-dl-57eaaff5cf1ae63d4e3ae89f301c0f9b3e86bb55.tar.gz
youtube-dl-57eaaff5cf1ae63d4e3ae89f301c0f9b3e86bb55.zip
[francetvinfo] Improve video id extraction (closes #28792)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/francetv.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/extractor/francetv.py b/youtube_dl/extractor/francetv.py
index 7cc88bf18..e4ec2e200 100644
--- a/youtube_dl/extractor/francetv.py
+++ b/youtube_dl/extractor/francetv.py
@@ -383,6 +383,10 @@ class FranceTVInfoIE(FranceTVBaseInfoExtractor):
}, {
'url': 'http://france3-regions.francetvinfo.fr/limousin/emissions/jt-1213-limousin',
'only_matching': True,
+ }, {
+ # "<figure id=" pattern (#28792)
+ 'url': 'https://www.francetvinfo.fr/culture/patrimoine/incendie-de-notre-dame-de-paris/notre-dame-de-paris-de-l-incendie-de-la-cathedrale-a-sa-reconstruction_4372291.html',
+ 'only_matching': True,
}]
def _real_extract(self, url):
@@ -400,7 +404,7 @@ class FranceTVInfoIE(FranceTVBaseInfoExtractor):
(r'player\.load[^;]+src:\s*["\']([^"\']+)',
r'id-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})'),
+ r'(?:data-id|<figure[^<]+\bid)=["\']([\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)