Skip to content
This repository has been archived by the owner on Jun 21, 2021. It is now read-only.

Commit

Permalink
[niconico] Fix bug in thumbnail extraction blackjack4494#289
Browse files Browse the repository at this point in the history
Bug from: 6b1d8c1
Authored by: CXwudi
  • Loading branch information
CXwudi authored May 1, 2021
1 parent d255823 commit 40078a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt_dlp/extractor/niconico.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def get_video_info_xml(items):

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)
Expand Down

0 comments on commit 40078a5

Please sign in to comment.