Skip to content

Commit

Permalink
add history page
Browse files Browse the repository at this point in the history
  • Loading branch information
hanydd committed Jan 5, 2025
1 parent 3f2fa8f commit 8adae02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/requests/videoLabels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ async function getLabelHashBlock(hashPrefix: string, refreshCache: boolean = fal
}

export async function getVideoLabel(videoID: VideoID, refreshCache: boolean = false): Promise<Category | null> {
return "sponsor" as Category;
const prefix = (await getVideoIDHash(videoID)).slice(0, 3);
const result = await getLabelHashBlock(prefix, refreshCache);

Expand Down
5 changes: 5 additions & 0 deletions src/thumbnail-utils/thumbnail-selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ const thumbnailSelectors: { [key: string]: ThumbnailSelector } = {
containerSelector: ".search-page-wrapper",
thumbnailSelector: ".bili-video-card",
},
"history": {
// 历史页
containerSelector: ".main-content",
thumbnailSelector: ".history-card",
},
};

const commonSelector = ["dynamicPopup", "historyPopup"];
Expand Down

0 comments on commit 8adae02

Please sign in to comment.