diff --git a/src/parser/classes/HypeFanCreditsSectionView.ts b/src/parser/classes/HypeFanCreditsSectionView.ts new file mode 100644 index 00000000..dc529456 --- /dev/null +++ b/src/parser/classes/HypeFanCreditsSectionView.ts @@ -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); + } +} \ No newline at end of file diff --git a/src/parser/classes/StructuredDescriptionContent.ts b/src/parser/classes/StructuredDescriptionContent.ts index 0753d92e..3e020a4b 100644 --- a/src/parser/classes/StructuredDescriptionContent.ts +++ b/src/parser/classes/StructuredDescriptionContent.ts @@ -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 ]); } } \ No newline at end of file diff --git a/src/parser/nodes.ts b/src/parser/nodes.ts index dd2d59fe..44e8ba0c 100644 --- a/src/parser/nodes.ts +++ b/src/parser/nodes.ts @@ -214,6 +214,7 @@ export { default as HorizontalCardList } from './classes/HorizontalCardList.js'; export { default as HorizontalList } from './classes/HorizontalList.js'; export { default as HorizontalMovieList } from './classes/HorizontalMovieList.js'; export { default as HowThisWasMadeSectionView } from './classes/HowThisWasMadeSectionView.js'; +export { default as HypeFanCreditsSectionView } from './classes/HypeFanCreditsSectionView.js'; export { default as HypePointsFactoid } from './classes/HypePointsFactoid.js'; export { default as IconLink } from './classes/IconLink.js'; export { default as ImageBannerView } from './classes/ImageBannerView.js';