mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-10-04 15:45:16 -04:00
[cleanup] Use format_field where applicable
This commit is contained in:
@@ -3331,7 +3331,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
'uploader_id': self._search_regex(r'/(?:channel|user)/([^/?&#]+)', owner_profile_url, 'uploader id') if owner_profile_url else None,
|
||||
'uploader_url': owner_profile_url,
|
||||
'channel_id': channel_id,
|
||||
'channel_url': f'https://www.youtube.com/channel/{channel_id}' if channel_id else None,
|
||||
'channel_url': format_field(channel_id, template='https://www.youtube.com/channel/%s'),
|
||||
'duration': duration,
|
||||
'view_count': int_or_none(
|
||||
get_first((video_details, microformats), (..., 'viewCount'))
|
||||
|
Reference in New Issue
Block a user