diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-03-04 19:41:01 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-03-04 19:49:37 +0530 |
commit | be8cd3cb1d013754950907904c52ae401c6e84fc (patch) | |
tree | 21892689a009f29eaf33d7aa3425e53decc55472 | |
parent | 319b6059d2e4ae7bbcd6389667b99eba63ebd98c (diff) | |
download | hypervideo-pre-be8cd3cb1d013754950907904c52ae401c6e84fc.tar.lz hypervideo-pre-be8cd3cb1d013754950907904c52ae401c6e84fc.tar.xz hypervideo-pre-be8cd3cb1d013754950907904c52ae401c6e84fc.zip |
[twitch] Fix field name of `view_count`
-rw-r--r-- | yt_dlp/extractor/twitch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/twitch.py b/yt_dlp/extractor/twitch.py index 54e500edd..bee26c3a3 100644 --- a/yt_dlp/extractor/twitch.py +++ b/yt_dlp/extractor/twitch.py @@ -1048,7 +1048,7 @@ class TwitchClipsIE(TwitchBaseIE): '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), |