mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-24 07:11:48 +00:00
refactor!: finish parser migration
Finally! :) This removes all code related to the old parser. #65
This commit is contained in:
17
lib/parser/classes/livechat/UpdateViewershipAction.js
Normal file
17
lib/parser/classes/livechat/UpdateViewershipAction.js
Normal file
@@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
const Text = require('../Text');
|
||||
|
||||
class UpdateViewershipAction {
|
||||
type = 'UpdateViewershipAction';
|
||||
|
||||
constructor(data) {
|
||||
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.is_live = view_count_renderer.isLive;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = UpdateViewershipAction;
|
||||
Reference in New Issue
Block a user