From fae71efe4b95d6f38fa6ee39c434d01a99033b90 Mon Sep 17 00:00:00 2001 From: Lauren Liberda Date: Sat, 20 Mar 2021 20:35:40 +0100 Subject: [PATCH] [peertube] improve thumbnail extraction Original author: remitamine --- haruhi_dl/extractor/peertube.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/haruhi_dl/extractor/peertube.py b/haruhi_dl/extractor/peertube.py index 9ebfc9183..5888662d0 100644 --- a/haruhi_dl/extractor/peertube.py +++ b/haruhi_dl/extractor/peertube.py @@ -103,11 +103,13 @@ class PeerTubeBaseExtractor(SelfhostedInfoExtractor): else: age_limit = None + webpage_url = 'https://%s/videos/watch/%s' % (host, display_id) + info_dict.update({ 'id': video['uuid'], 'title': video['name'], 'description': video.get('description'), - 'thumbnail': urljoin(url, video.get('thumbnailPath')), + 'thumbnail': urljoin(webpage_url, video.get('thumbnailPath')), 'timestamp': unified_timestamp(video.get('publishedAt')), 'uploader': account_data('displayName', compat_str), 'uploader_id': str_or_none(account_data('id', int)),