1
0
Fork 0

[cleanup] Use format_field where applicable

This commit is contained in:
pukkandan 2022-01-21 13:27:40 +05:30
commit e0ddbd02bd
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698
26 changed files with 59 additions and 52 deletions

View file

@ -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'),
}