aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/lnkgo.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/lnkgo.py')
-rw-r--r--yt_dlp/extractor/lnkgo.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/yt_dlp/extractor/lnkgo.py b/yt_dlp/extractor/lnkgo.py
index 7da0b4284..bd2dffac0 100644
--- a/yt_dlp/extractor/lnkgo.py
+++ b/yt_dlp/extractor/lnkgo.py
@@ -73,14 +73,12 @@ class LnkGoIE(InfoExtractor):
video_id, 'mp4', 'm3u8_native')
self._sort_formats(formats)
- poster_image = video_info.get('posterImage')
-
return {
'id': video_id,
'display_id': display_id,
'title': title,
'formats': formats,
- 'thumbnail': 'https://lnk.lt/all-images/' + poster_image if poster_image else None,
+ 'thumbnail': format_field(video_info, 'posterImage', 'https://lnk.lt/all-images/%s'),
'duration': int_or_none(video_info.get('duration')),
'description': clean_html(video_info.get('htmlDescription')),
'age_limit': self._AGE_LIMITS.get(video_info.get('pgRating'), 0),