Skip to content

Commit

Permalink
fix(StructuredDescriptionContent): Add ReelShelf to list of possibl…
Browse files Browse the repository at this point in the history
…e nodes
  • Loading branch information
LuanRT committed Dec 1, 2023
1 parent 5ae15be commit f74ed5a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/parser/classes/StructuredDescriptionContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,23 @@ import VideoDescriptionInfocardsSection from './VideoDescriptionInfocardsSection
import VideoDescriptionMusicSection from './VideoDescriptionMusicSection.js';
import VideoDescriptionTranscriptSection from './VideoDescriptionTranscriptSection.js';
import VideoDescriptionCourseSection from './VideoDescriptionCourseSection.js';
import ReelShelf from './ReelShelf.js';

export default class StructuredDescriptionContent extends YTNode {
static type = 'StructuredDescriptionContent';

items: ObservedArray<
VideoDescriptionHeader | ExpandableVideoDescriptionBody | VideoDescriptionMusicSection |
VideoDescriptionInfocardsSection | VideoDescriptionTranscriptSection | VideoDescriptionTranscriptSection |
VideoDescriptionCourseSection | HorizontalCardList
VideoDescriptionCourseSection | HorizontalCardList | ReelShelf
>;

constructor(data: RawNode) {
super();
this.items = Parser.parseArray(data.items, [
VideoDescriptionHeader, ExpandableVideoDescriptionBody, VideoDescriptionMusicSection,
VideoDescriptionInfocardsSection, VideoDescriptionCourseSection, VideoDescriptionTranscriptSection,
VideoDescriptionTranscriptSection, HorizontalCardList
VideoDescriptionTranscriptSection, HorizontalCardList, ReelShelf
]);
}
}

0 comments on commit f74ed5a

Please sign in to comment.