mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-09-03 08:35:32 +00:00
[cleanup] Use format_field where applicable
This commit is contained in:
@ -7,6 +7,7 @@ import json
|
||||
from .common import InfoExtractor
|
||||
from ..utils import (
|
||||
ExtractorError,
|
||||
format_field,
|
||||
int_or_none,
|
||||
str_or_none,
|
||||
try_get,
|
||||
@ -28,7 +29,7 @@ class TrovoBaseIE(InfoExtractor):
|
||||
return {
|
||||
'uploader': streamer_info.get('nickName'),
|
||||
'uploader_id': str_or_none(streamer_info.get('uid')),
|
||||
'uploader_url': 'https://trovo.live/' + username if username else None,
|
||||
'uploader_url': format_field(username, template='https://trovo.live/%s'),
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user