mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 03:27:06 -05:00 
			
		
		
		
	[redtube] Add support for thumbnails
Signed-off-by: Philipp Hagemeister <phihag@phihag.de>
This commit is contained in:
		
				
					committed by
					
						
						Philipp Hagemeister
					
				
			
			
				
	
			
			
			
						parent
						
							2989501131
						
					
				
				
					commit
					9d11a41fe4
				
			@@ -33,6 +33,10 @@ class RedTubeIE(InfoExtractor):
 | 
				
			|||||||
            r'<h1 class="videoTitle[^"]*">(.+?)</h1>',
 | 
					            r'<h1 class="videoTitle[^"]*">(.+?)</h1>',
 | 
				
			||||||
            webpage, u'title')
 | 
					            webpage, u'title')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        video_thumbnail = self._html_search_regex(
 | 
				
			||||||
 | 
					            r'playerInnerHTML.+?<img\s+src="(.+?)"',
 | 
				
			||||||
 | 
					            webpage, u'thumbnail', fatal=False)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # No self-labeling, but they describe themselves as
 | 
					        # No self-labeling, but they describe themselves as
 | 
				
			||||||
        # "Home of Videos Porno"
 | 
					        # "Home of Videos Porno"
 | 
				
			||||||
        age_limit = 18
 | 
					        age_limit = 18
 | 
				
			||||||
@@ -42,5 +46,6 @@ class RedTubeIE(InfoExtractor):
 | 
				
			|||||||
            'url':       video_url,
 | 
					            'url':       video_url,
 | 
				
			||||||
            'ext':       video_extension,
 | 
					            'ext':       video_extension,
 | 
				
			||||||
            'title':     video_title,
 | 
					            'title':     video_title,
 | 
				
			||||||
 | 
					            'thumbnail': video_thumbnail,
 | 
				
			||||||
            'age_limit': age_limit,
 | 
					            'age_limit': age_limit,
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user