mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-24 07:11:48 +00:00
fix(StructuredDescriptionContent): Add ReelShelf to list of possible nodes
This commit is contained in:
@@ -7,6 +7,7 @@ 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';
|
||||
@@ -14,7 +15,7 @@ export default class StructuredDescriptionContent extends YTNode {
|
||||
items: ObservedArray<
|
||||
VideoDescriptionHeader | ExpandableVideoDescriptionBody | VideoDescriptionMusicSection |
|
||||
VideoDescriptionInfocardsSection | VideoDescriptionTranscriptSection | VideoDescriptionTranscriptSection |
|
||||
VideoDescriptionCourseSection | HorizontalCardList
|
||||
VideoDescriptionCourseSection | HorizontalCardList | ReelShelf
|
||||
>;
|
||||
|
||||
constructor(data: RawNode) {
|
||||
@@ -22,7 +23,7 @@ export default class StructuredDescriptionContent extends YTNode {
|
||||
this.items = Parser.parseArray(data.items, [
|
||||
VideoDescriptionHeader, ExpandableVideoDescriptionBody, VideoDescriptionMusicSection,
|
||||
VideoDescriptionInfocardsSection, VideoDescriptionCourseSection, VideoDescriptionTranscriptSection,
|
||||
VideoDescriptionTranscriptSection, HorizontalCardList
|
||||
VideoDescriptionTranscriptSection, HorizontalCardList, ReelShelf
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user