mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-12-18 07:05:41 +07:00
[cleanup] Use format_field where applicable
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
from ..utils import (
|
||||
clean_html,
|
||||
ExtractorError,
|
||||
format_field,
|
||||
int_or_none,
|
||||
unsmuggle_url,
|
||||
smuggle_url,
|
||||
@@ -372,6 +373,6 @@ def sign_url(unsigned_url):
|
||||
'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