From 40078a55e2549ad3348997180622503c2b84383c Mon Sep 17 00:00:00 2001 From: CXwudi Date: Sat, 1 May 2021 10:05:47 -0400 Subject: [PATCH] [niconico] Fix bug in thumbnail extraction #289 Bug from: 6b1d8c1e3038e7f0977ad36027f9f3ff61d27f46 Authored by: CXwudi --- yt_dlp/extractor/niconico.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/niconico.py b/yt_dlp/extractor/niconico.py index 126aa4530..1c15dca71 100644 --- a/yt_dlp/extractor/niconico.py +++ b/yt_dlp/extractor/niconico.py @@ -511,7 +511,7 @@ class NiconicoIE(InfoExtractor): thumbnail = ( self._html_search_regex(r'', webpage, 'thumbnail data', default=None) - or try_get( # choose highest from 720p to 240p + or dict_get( # choose highest from 720p to 240p get_video_info_web('thumbnail'), ['ogp', 'player', 'largeUrl', 'middleUrl', 'url']) or self._html_search_meta('image', webpage, 'thumbnail', default=None)