mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-28 00:56:23 +00:00
feat(Parser): Add HypeFanCreditsSectionView
This commit is contained in:
14
src/parser/classes/HypeFanCreditsSectionView.ts
Normal file
14
src/parser/classes/HypeFanCreditsSectionView.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { YTNode } from '../helpers.js';
|
||||
import { Parser, type RawNode } from '../index.js';
|
||||
import SectionHeaderView from './SectionHeaderView.js';
|
||||
|
||||
export default class HypeFanCreditsSectionView extends YTNode{
|
||||
static type = 'HypeFanCreditsSectionView';
|
||||
|
||||
public header: SectionHeaderView | null;
|
||||
|
||||
constructor(data: RawNode) {
|
||||
super();
|
||||
this.header = Parser.parseItem(data.header, SectionHeaderView);
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,7 @@ import HowThisWasMadeSectionView from './HowThisWasMadeSectionView.js';
|
||||
import ReelShelf from './ReelShelf.js';
|
||||
import ExpandableMetadata from './ExpandableMetadata.js';
|
||||
import MerchandiseShelf from './MerchandiseShelf.js';
|
||||
import HypeFanCreditsSectionView from './HypeFanCreditsSectionView.js';
|
||||
|
||||
export default class StructuredDescriptionContent extends YTNode {
|
||||
static type = 'StructuredDescriptionContent';
|
||||
@@ -20,7 +21,7 @@ export default class StructuredDescriptionContent extends YTNode {
|
||||
VideoDescriptionHeader | ExpandableVideoDescriptionBody | VideoDescriptionMusicSection |
|
||||
VideoDescriptionInfocardsSection | VideoDescriptionTranscriptSection |
|
||||
VideoDescriptionCourseSection | HorizontalCardList | ReelShelf | VideoAttributesSectionView |
|
||||
HowThisWasMadeSectionView | ExpandableMetadata | MerchandiseShelf
|
||||
HowThisWasMadeSectionView | ExpandableMetadata | MerchandiseShelf | HypeFanCreditsSectionView
|
||||
>;
|
||||
|
||||
constructor(data: RawNode) {
|
||||
@@ -29,7 +30,7 @@ export default class StructuredDescriptionContent extends YTNode {
|
||||
VideoDescriptionHeader, ExpandableVideoDescriptionBody, VideoDescriptionMusicSection,
|
||||
VideoDescriptionInfocardsSection, VideoDescriptionCourseSection, VideoDescriptionTranscriptSection,
|
||||
VideoDescriptionTranscriptSection, HorizontalCardList, ReelShelf, VideoAttributesSectionView,
|
||||
HowThisWasMadeSectionView, ExpandableMetadata, MerchandiseShelf
|
||||
HowThisWasMadeSectionView, ExpandableMetadata, MerchandiseShelf, HypeFanCreditsSectionView
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user