mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-30 09:55:18 +00:00
refactor(parser): fix many minor inconsistencies
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import Parser from '../index.js';
|
||||
import Text from './misc/Text.js';
|
||||
import { YTNode } from '../helpers.js';
|
||||
import Parser, { RawNode } from '../index.js';
|
||||
import Text from './misc/Text.js';
|
||||
|
||||
class LiveChat extends YTNode {
|
||||
static type = 'LiveChat';
|
||||
@@ -19,9 +19,9 @@ class LiveChat extends YTNode {
|
||||
|
||||
is_replay: boolean;
|
||||
|
||||
constructor(data: any) {
|
||||
constructor(data: RawNode) {
|
||||
super();
|
||||
this.header = Parser.parse(data.header);
|
||||
this.header = Parser.parseItem(data.header);
|
||||
this.initial_display_state = data.initialDisplayState;
|
||||
this.continuation = data.continuations[0]?.reloadContinuationData?.continuation;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user