mirror of https://github.com/yt-dlp/yt-dlp.git
[twitch] Fix field name of `view_count`
This commit is contained in:
parent
319b6059d2
commit
be8cd3cb1d
|
@ -1048,7 +1048,7 @@ class TwitchClipsIE(TwitchBaseIE):
|
||||||
'title': clip.get('title') or video_id,
|
'title': clip.get('title') or video_id,
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
'duration': int_or_none(clip.get('durationSeconds')),
|
'duration': int_or_none(clip.get('durationSeconds')),
|
||||||
'views': int_or_none(clip.get('viewCount')),
|
'view_count': int_or_none(clip.get('viewCount')),
|
||||||
'timestamp': unified_timestamp(clip.get('createdAt')),
|
'timestamp': unified_timestamp(clip.get('createdAt')),
|
||||||
'thumbnails': thumbnails,
|
'thumbnails': thumbnails,
|
||||||
'creator': try_get(clip, lambda x: x['broadcaster']['displayName'], compat_str),
|
'creator': try_get(clip, lambda x: x['broadcaster']['displayName'], compat_str),
|
||||||
|
|
Loading…
Reference in New Issue