mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 00:25:15 +00:00 
			
		
		
		
	[niconico] Fix bug in thumbnail extraction #289
Bug from: 6b1d8c1e30
Authored by: CXwudi
			
			
This commit is contained in:
		@@ -511,7 +511,7 @@ class NiconicoIE(InfoExtractor):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        thumbnail = (
 | 
					        thumbnail = (
 | 
				
			||||||
            self._html_search_regex(r'<meta property="og:image" content="([^"]+)">', webpage, 'thumbnail data', default=None)
 | 
					            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'),
 | 
					                get_video_info_web('thumbnail'),
 | 
				
			||||||
                ['ogp', 'player', 'largeUrl', 'middleUrl', 'url'])
 | 
					                ['ogp', 'player', 'largeUrl', 'middleUrl', 'url'])
 | 
				
			||||||
            or self._html_search_meta('image', webpage, 'thumbnail', default=None)
 | 
					            or self._html_search_meta('image', webpage, 'thumbnail', default=None)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user