mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-01 20:46:14 +00:00
chore: fix some inconsistencies
This commit is contained in:
@@ -28,8 +28,8 @@ class Library extends Feed<IBrowseResponse> {
|
||||
if (!this.page.contents_memo)
|
||||
throw new InnertubeError('Page contents not found');
|
||||
|
||||
const stats = this.page.contents_memo.getType(ProfileColumnStats)?.[0];
|
||||
const user_info = this.page.contents_memo.getType(ProfileColumnUserInfo)?.[0];
|
||||
const stats = this.page.contents_memo.getType(ProfileColumnStats).first();
|
||||
const user_info = this.page.contents_memo.getType(ProfileColumnUserInfo).first();
|
||||
|
||||
this.profile = { stats, user_info };
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ class TimeWatched {
|
||||
contents?: ObservedArray<ItemSection>;
|
||||
|
||||
constructor(response: ApiResponse) {
|
||||
this.#page = Parser.parseResponse(response.data);
|
||||
this.#page = Parser.parseResponse<IBrowseResponse>(response.data);
|
||||
|
||||
if (!this.#page.contents)
|
||||
throw new InnertubeError('Page contents not found');
|
||||
|
||||
Reference in New Issue
Block a user