about summary refs log tree commit diff
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2021-12-09 01:35:35 +0000
committerdirkf <fieldhouse@gmx.net>2022-02-05 02:32:45 +0000
commit584715a803eef68f68fbbb8b72a022a699983197 (patch)
tree24d88c675e218e2821b7330894f8baae88f40839
parente00b0eab1e78ed822683b2689f60eab85514ac42 (diff)
downloadyoutube-dl-584715a803eef68f68fbbb8b72a022a699983197.tar.gz
youtube-dl-584715a803eef68f68fbbb8b72a022a699983197.tar.xz
youtube-dl-584715a803eef68f68fbbb8b72a022a699983197.zip
[applepodcasts] Extract default thumbnail image
-rw-r--r--youtube_dl/extractor/applepodcasts.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/applepodcasts.py b/youtube_dl/extractor/applepodcasts.py
index dd413a289..95e0f663c 100644
--- a/youtube_dl/extractor/applepodcasts.py
+++ b/youtube_dl/extractor/applepodcasts.py
@@ -27,6 +27,7 @@ class ApplePodcastsIE(InfoExtractor):
             'timestamp': 1593932400,
             'duration': 6454,
             'series': 'The Tim Dillon Show',
+            'thumbnail': 're:.+[.](png|jpe?g|webp)',
         }
     }, {
         'url': 'https://podcasts.apple.com/podcast/207-whitney-webb-returns/id1135137367?i=1000482637777',
@@ -83,6 +84,7 @@ class ApplePodcastsIE(InfoExtractor):
             'timestamp': parse_iso8601(episode.get('releaseDateTime')),
             'duration': int_or_none(episode.get('durationInMilliseconds'), 1000),
             'series': series,
+            'thumbnail': self._og_search_thumbnail(webpage),
         }]
         self._sort_formats(info)
         info = info[0]