mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-20 04:51:16 +00:00
* tests: improve coverage * refactor: clean up nodes * chore: lint * feat(parser): ignore `BrandVideoShelf` Seems to be used for ads. * feat(parser): ignore `BrandVideoSingleton` too
16 lines
451 B
TypeScript
16 lines
451 B
TypeScript
import Parser from '../../index.js';
|
|
import { YTNode } from '../../helpers.js';
|
|
import type { RawNode } from '../../index.js';
|
|
|
|
export default class AddLiveChatTickerItemAction extends YTNode {
|
|
static type = 'AddLiveChatTickerItemAction';
|
|
|
|
item: YTNode;
|
|
duration_sec: string; // TODO: check this assumption.
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.item = Parser.parseItem(data.item);
|
|
this.duration_sec = data.durationSec;
|
|
}
|
|
} |