feat(yt): add getGuide() (#335)

* feat(yt): add `getGuide()`

* chore: lint

* fix(Guide): wrong prop

* fix(Guide): include subscription section

* fix(Guide): wrong import

* feat(Guide): add `page`
This commit is contained in:
Patrick Kan
2023-03-04 17:23:17 +08:00
committed by GitHub
parent 2d774e26aa
commit 2cc7b8bcd6
13 changed files with 204 additions and 1 deletions

View File

@@ -262,6 +262,14 @@ export default class Parser {
parsed_data.cards = cards;
}
this.#createMemo();
const items = this.parse(data.items);
if (items) {
parsed_data.items = items;
parsed_data.items_memo = this.#getMemo();
}
this.#clearMemo();
return parsed_data;
}
@@ -481,7 +489,8 @@ export default class Parser {
'RunAttestationCommand',
'CompactPromotedVideo',
'StatementBanner',
'SearchSubMenu'
'SearchSubMenu',
'GuideSigninPromo'
]);
static shouldIgnore(classname: string) {