mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-02 21:52:48 +00:00
refactor(parser): fix many minor inconsistencies
This commit is contained in:
@@ -9,7 +9,7 @@ class Analytics {
|
||||
|
||||
constructor(response: ApiResponse) {
|
||||
this.#page = Parser.parseResponse<IBrowseResponse>(response.data);
|
||||
this.sections = this.#page.contents_memo?.getType(Element).map((el) => el.model?.item()).flatMap((el) => !el ? [] : el);
|
||||
this.sections = this.#page.contents_memo?.getType(Element).map((el) => el.model).flatMap((el) => !el ? [] : el);
|
||||
}
|
||||
|
||||
get page(): IBrowseResponse {
|
||||
|
||||
Reference in New Issue
Block a user