aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/peertube.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/peertube.py')
-rw-r--r--hypervideo_dl/extractor/peertube.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/hypervideo_dl/extractor/peertube.py b/hypervideo_dl/extractor/peertube.py
index 1e22f24..9d6b821 100644
--- a/hypervideo_dl/extractor/peertube.py
+++ b/hypervideo_dl/extractor/peertube.py
@@ -7,6 +7,7 @@ import re
from .common import InfoExtractor
from ..compat import compat_str
from ..utils import (
+ format_field,
int_or_none,
parse_resolution,
str_or_none,
@@ -86,6 +87,7 @@ class PeerTubeIE(InfoExtractor):
maindreieck-tv\.de|
mani\.tube|
manicphase\.me|
+ media\.fsfe\.org|
media\.gzevd\.de|
media\.inno3\.cricket|
media\.kaitaia\.life|
@@ -1386,8 +1388,7 @@ class PeerTubePlaylistIE(InfoExtractor):
playlist_timestamp = unified_timestamp(info.get('createdAt'))
channel = try_get(info, lambda x: x['ownerAccount']['name']) or info.get('displayName')
channel_id = try_get(info, lambda x: x['ownerAccount']['id']) or info.get('id')
- thumbnail = info.get('thumbnailPath')
- thumbnail = f'https://{host}{thumbnail}' if thumbnail else None
+ thumbnail = format_field(info, 'thumbnailPath', f'https://{host}%s')
entries = OnDemandPagedList(functools.partial(
self.fetch_page, host, id, type), self._PAGE_SIZE)