aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCXwudi <cx2010017@gmail.com>2021-05-01 10:05:47 -0400
committerGitHub <noreply@github.com>2021-05-01 19:35:47 +0530
commit40078a55e2549ad3348997180622503c2b84383c (patch)
tree534eed4c082ed705c6d2e6b4e3edf108a017d92e
parentd2558234cf5dd12d6896eed5427b7dcdb3ab7b5a (diff)
downloadhypervideo-pre-40078a55e2549ad3348997180622503c2b84383c.tar.lz
hypervideo-pre-40078a55e2549ad3348997180622503c2b84383c.tar.xz
hypervideo-pre-40078a55e2549ad3348997180622503c2b84383c.zip
[niconico] Fix bug in thumbnail extraction #289
Bug from: 6b1d8c1e3038e7f0977ad36027f9f3ff61d27f46 Authored by: CXwudi
-rw-r--r--yt_dlp/extractor/niconico.py2
1 files changed, 1 insertions, 1 deletions
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'<meta property="og:image" content="([^"]+)">', 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)