mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 23:07:07 -05:00 
			
		
		
		
	Add thumbnail for metacafe
This commit is contained in:
		@@ -166,6 +166,7 @@ class MetacafeIE(InfoExtractor):
 | 
			
		||||
 | 
			
		||||
        video_title = self._html_search_regex(r'(?im)<title>(.*) - Video</title>', webpage, u'title')
 | 
			
		||||
        description = self._og_search_description(webpage)
 | 
			
		||||
        thumbnail = self._html_search_regex(r'<meta property="og:image" content="([^"].+?)(?is)"', webpage, u'thumbnail',default='')
 | 
			
		||||
        video_uploader = self._html_search_regex(
 | 
			
		||||
                r'submitter=(.*?);|googletag\.pubads\(\)\.setTargeting\("(?:channel|submiter)","([^"]+)"\);',
 | 
			
		||||
                webpage, u'uploader nickname', fatal=False)
 | 
			
		||||
@@ -183,6 +184,7 @@ class MetacafeIE(InfoExtractor):
 | 
			
		||||
            'uploader': video_uploader,
 | 
			
		||||
            'upload_date':  None,
 | 
			
		||||
            'title':    video_title,
 | 
			
		||||
            'thumbnail':thumbnail,
 | 
			
		||||
            'ext':      video_ext,
 | 
			
		||||
            'age_limit': age_limit,
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user