aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorrenalid <renalid@gmail.com>2020-11-22 19:35:53 +0100
committerGitHub <noreply@github.com>2020-11-22 19:35:53 +0100
commitdd0f524c69ad95541f7d370bdb877ee68f722f26 (patch)
treea265261c737bf1542d3a44967cd8178d45939198 /youtube_dl
parentc84f9475b8df0f892b631966159e1649dafe13f0 (diff)
downloadyoutube-dl-dd0f524c69ad95541f7d370bdb877ee68f722f26.tar.xz
[franceinter] add thumbnail url (#27153)
Co-authored-by: remitamine <remitamine@gmail.com>
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/franceinter.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/franceinter.py b/youtube_dl/extractor/franceinter.py
index 05806895c..a009f4d38 100644
--- a/youtube_dl/extractor/franceinter.py
+++ b/youtube_dl/extractor/franceinter.py
@@ -16,6 +16,7 @@ class FranceInterIE(InfoExtractor):
'ext': 'mp3',
'title': 'Affaire Cahuzac : le contentieux du compte en Suisse',
'description': 'md5:401969c5d318c061f86bda1fa359292b',
+ 'thumbnail': r're:^https?://.*\.jpg',
'upload_date': '20160907',
},
}
@@ -31,6 +32,7 @@ class FranceInterIE(InfoExtractor):
title = self._og_search_title(webpage)
description = self._og_search_description(webpage)
+ thumbnail = self._html_search_meta(['og:image', 'twitter:image'], webpage)
upload_date_str = self._search_regex(
r'class=["\']\s*cover-emission-period\s*["\'][^>]*>[^<]+\s+(\d{1,2}\s+[^\s]+\s+\d{4})<',
@@ -48,6 +50,7 @@ class FranceInterIE(InfoExtractor):
'id': video_id,
'title': title,
'description': description,
+ 'thumbnail' : thumbnail,
'upload_date': upload_date,
'formats': [{
'url': video_url,