mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-11-09 10:30:43 +00:00
[cleanup] Use format_field where applicable
This commit is contained in:
@@ -5,6 +5,7 @@ from .common import InfoExtractor
|
||||
from ..compat import compat_str
|
||||
from ..utils import (
|
||||
clean_html,
|
||||
format_field,
|
||||
int_or_none,
|
||||
str_or_none,
|
||||
strip_or_none,
|
||||
@@ -120,7 +121,7 @@ class MindsIE(MindsBaseIE):
|
||||
'timestamp': int_or_none(entity.get('time_created')),
|
||||
'uploader': strip_or_none(owner.get('name')),
|
||||
'uploader_id': uploader_id,
|
||||
'uploader_url': 'https://www.minds.com/' + uploader_id if uploader_id else None,
|
||||
'uploader_url': format_field(uploader_id, template='https://www.minds.com/%s'),
|
||||
'view_count': int_or_none(entity.get('play:count')),
|
||||
'like_count': int_or_none(entity.get('thumbs:up:count')),
|
||||
'dislike_count': int_or_none(entity.get('thumbs:down:count')),
|
||||
|
||||
Reference in New Issue
Block a user