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)),