feat(parser): Add VideoViewCount node

This commit is contained in:
Luan
2024-11-15 03:16:03 -03:00
parent 80dbd6fe71
commit ad448f8106
3 changed files with 34 additions and 18 deletions

View File

@@ -0,0 +1,18 @@
import { Text } from '../misc.js';
import { YTNode } from '../helpers.js';
import type { RawNode } from '../index.js';
export default class VideoViewCount extends YTNode {
static type = 'VideoViewCount';
public original_view_count: string;
public short_view_count: Text;
public view_count: Text;
constructor(data: RawNode) {
super();
this.original_view_count = data.originalViewCount;
this.short_view_count = new Text(data.shortViewCount);
this.view_count = new Text(data.viewCount);
}
}