mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-04 03:51:00 +00:00
refactor: clean up parser and tests (#387)
* tests: improve coverage * refactor: clean up nodes * chore: lint * feat(parser): ignore `BrandVideoShelf` Seems to be used for ads. * feat(parser): ignore `BrandVideoSingleton` too
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
import { YTNode } from '../helpers.js';
|
||||
import Parser, { RawNode } from '../index.js';
|
||||
import Parser, { type RawNode } from '../index.js';
|
||||
|
||||
class PlaylistSidebarSecondaryInfo extends YTNode {
|
||||
export default class PlaylistSidebarSecondaryInfo extends YTNode {
|
||||
static type = 'PlaylistSidebarSecondaryInfo';
|
||||
|
||||
owner;
|
||||
button;
|
||||
owner: YTNode;
|
||||
button: YTNode;
|
||||
|
||||
constructor(data: RawNode) {
|
||||
super();
|
||||
this.owner = Parser.parseItem(data.videoOwner);
|
||||
this.button = Parser.parseItem(data.button);
|
||||
}
|
||||
}
|
||||
|
||||
export default PlaylistSidebarSecondaryInfo;
|
||||
}
|
||||
Reference in New Issue
Block a user