diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-01-21 13:27:40 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-01-21 13:27:40 +0530 |
commit | e0ddbd02bd1c365b95bb88eaa6e4e0238faf35eb (patch) | |
tree | 8035bea649dee8e517380a8c3d6dc31a0436c2c3 /yt_dlp/extractor/lnkgo.py | |
parent | 0bfc53d05c7ecd7762313f0cd8578c46cd916519 (diff) |
[cleanup] Use format_field where applicable
Diffstat (limited to 'yt_dlp/extractor/lnkgo.py')
-rw-r--r-- | yt_dlp/extractor/lnkgo.py | 4 |
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), |