mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[cleanup] Use format_field where applicable
This commit is contained in:
		| @@ -12,6 +12,7 @@ from ..compat import ( | ||||
| from ..utils import ( | ||||
|     clean_html, | ||||
|     ExtractorError, | ||||
|     format_field, | ||||
|     int_or_none, | ||||
|     unsmuggle_url, | ||||
|     smuggle_url, | ||||
| @@ -372,6 +373,6 @@ class KalturaIE(InfoExtractor): | ||||
|             'thumbnail': info.get('thumbnailUrl'), | ||||
|             'duration': info.get('duration'), | ||||
|             'timestamp': info.get('createdAt'), | ||||
|             'uploader_id': info.get('userId') if info.get('userId') != 'None' else None, | ||||
|             'uploader_id': format_field(info, 'userId', ignore=('None', None)), | ||||
|             'view_count': info.get('plays'), | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan