From bf6cc006997675010db61fcd776244b234be5611 Mon Sep 17 00:00:00 2001 From: Dave Nicolson Date: Wed, 11 Sep 2024 07:28:33 +0200 Subject: [PATCH] fix(ItemSection): FeedFilterChipBar parse error (#741) --- src/parser/classes/ItemSection.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/parser/classes/ItemSection.ts b/src/parser/classes/ItemSection.ts index f41de3f14..3247a7396 100644 --- a/src/parser/classes/ItemSection.ts +++ b/src/parser/classes/ItemSection.ts @@ -4,18 +4,19 @@ import ItemSectionHeader from './ItemSectionHeader.js'; import ItemSectionTabbedHeader from './ItemSectionTabbedHeader.js'; import CommentsHeader from './comments/CommentsHeader.js'; import SortFilterHeader from './SortFilterHeader.js'; +import FeedFilterChipBar from './FeedFilterChipBar.js'; export default class ItemSection extends YTNode { static type = 'ItemSection'; - header: CommentsHeader | ItemSectionHeader | ItemSectionTabbedHeader | SortFilterHeader | null; + header: CommentsHeader | ItemSectionHeader | ItemSectionTabbedHeader | SortFilterHeader | FeedFilterChipBar | null; contents: ObservedArray; target_id?: string; continuation?: string; constructor(data: RawNode) { super(); - this.header = Parser.parseItem(data.header, [ CommentsHeader, ItemSectionHeader, ItemSectionTabbedHeader, SortFilterHeader ]); + this.header = Parser.parseItem(data.header, [ CommentsHeader, ItemSectionHeader, ItemSectionTabbedHeader, SortFilterHeader, FeedFilterChipBar ]); this.contents = Parser.parseArray(data.contents); if (data.targetId || data.sectionIdentifier) {