1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 09:12:40 +01:00

[twitch] Fix field name of view_count

This commit is contained in:
pukkandan 2022-03-04 19:41:01 +05:30
parent 319b6059d2
commit be8cd3cb1d
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

View File

@ -1048,7 +1048,7 @@ def _real_extract(self, url):
'title': clip.get('title') or video_id,
'formats': formats,
'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')),
'thumbnails': thumbnails,
'creator': try_get(clip, lambda x: x['broadcaster']['displayName'], compat_str),