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:
		| @@ -9,6 +9,7 @@ from ..compat import ( | ||||
|     compat_str, | ||||
| ) | ||||
| from ..utils import ( | ||||
|     format_field, | ||||
|     int_or_none, | ||||
|     parse_iso8601, | ||||
|     smuggle_url, | ||||
| @@ -43,7 +44,7 @@ class AWAANBaseIE(InfoExtractor): | ||||
|             'id': video_id, | ||||
|             'title': title, | ||||
|             'description': video_data.get('description_en') or video_data.get('description_ar'), | ||||
|             'thumbnail': 'http://admin.mangomolo.com/analytics/%s' % img if img else None, | ||||
|             'thumbnail': format_field(img, template='http://admin.mangomolo.com/analytics/%s'), | ||||
|             'duration': int_or_none(video_data.get('duration')), | ||||
|             'timestamp': parse_iso8601(video_data.get('create_time'), ' '), | ||||
|             'is_live': is_live, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan