mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-24 07:11:48 +00:00
fix(Library)!: Add support for the new layout and remove profile & stats info
This commit is contained in:
@@ -1,17 +1,23 @@
|
||||
import { YTNode } from '../helpers.js';
|
||||
import { Parser, type RawNode } from '../index.js';
|
||||
import ContentMetadataView from './ContentMetadataView.js';
|
||||
import ContentPreviewImageView from './ContentPreviewImageView.js';
|
||||
import DynamicTextView from './DynamicTextView.js';
|
||||
import FlexibleActionsView from './FlexibleActionsView.js';
|
||||
|
||||
export default class PageHeaderView extends YTNode {
|
||||
static type = 'PageHeaderView';
|
||||
|
||||
image: ContentPreviewImageView | null;
|
||||
title: DynamicTextView | null;
|
||||
image: ContentPreviewImageView | null;
|
||||
metadata: YTNode | null;
|
||||
actions: YTNode | null;
|
||||
|
||||
constructor(data: RawNode) {
|
||||
super();
|
||||
this.image = Parser.parseItem(data.image, ContentPreviewImageView);
|
||||
this.title = Parser.parseItem(data.title, DynamicTextView);
|
||||
this.image = Parser.parseItem(data.image, ContentPreviewImageView);
|
||||
this.metadata = Parser.parseItem(data.metadata, ContentMetadataView);
|
||||
this.actions = Parser.parseItem(data.actions, FlexibleActionsView);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user