[reddit] check thumbnail URL(closes #20030)
This commit is contained in:
		
							parent
							
								
									da668a23bd
								
							
						
					
					
						commit
						97abf05ad3
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -7,6 +7,7 @@ from ..utils import (
 | 
			
		|||
    ExtractorError,
 | 
			
		||||
    int_or_none,
 | 
			
		||||
    float_or_none,
 | 
			
		||||
    url_or_none,
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -119,7 +120,7 @@ class RedditRIE(InfoExtractor):
 | 
			
		|||
            '_type': 'url_transparent',
 | 
			
		||||
            'url': video_url,
 | 
			
		||||
            'title': data.get('title'),
 | 
			
		||||
            'thumbnail': data.get('thumbnail'),
 | 
			
		||||
            'thumbnail': url_or_none(data.get('thumbnail')),
 | 
			
		||||
            'timestamp': float_or_none(data.get('created_utc')),
 | 
			
		||||
            'uploader': data.get('author'),
 | 
			
		||||
            'like_count': int_or_none(data.get('ups')),
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue