From fd8b8e34882e7f912ef4e41bc11fe8a7c37e61c7 Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Sat, 21 Oct 2023 15:31:48 +0200 Subject: [PATCH] feat(UpdateViewerShipAction): Add `original_view_count` and `unlabeled_view_count_value` --- src/parser/classes/livechat/UpdateViewershipAction.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/parser/classes/livechat/UpdateViewershipAction.ts b/src/parser/classes/livechat/UpdateViewershipAction.ts index ed7b280ec..07fc473ed 100644 --- a/src/parser/classes/livechat/UpdateViewershipAction.ts +++ b/src/parser/classes/livechat/UpdateViewershipAction.ts @@ -7,6 +7,8 @@ export default class UpdateViewershipAction extends YTNode { view_count: Text; extra_short_view_count: Text; + original_view_count: Number; + unlabeled_view_count_value: Text; is_live: boolean; constructor(data: RawNode) { @@ -14,6 +16,8 @@ export default class UpdateViewershipAction extends YTNode { const view_count_renderer = data.viewCount.videoViewCountRenderer; this.view_count = new Text(view_count_renderer.viewCount); this.extra_short_view_count = new Text(view_count_renderer.extraShortViewCount); + this.original_view_count = parseInt(view_count_renderer.originalViewCount); + this.unlabeled_view_count_value = new Text(view_count_renderer.unlabeledViewCountValue); this.is_live = view_count_renderer.isLive; } } \ No newline at end of file