update CAT

This commit is contained in:
qist committed 2024-04-17 11:16:03 +08:00
1 parent 14f58c87f5
commit 4ce167269d
17 files changed
+855 -369

No files matched your search

+10 -3
View File
@@ -99,7 +99,7 @@ class BilibiliSpider extends Spider {
for (const navElement of navElements) {
this.classes.push(this.getTypeDic($(navElement).text(), $(navElement).text()))
}
if (!_.isEmpty(this.bili_jct)) {
if (!_.isEmpty(this.bili_jct) && this.is_login) {
this.classes.push(this.getTypeDic("历史记录", "历史记录"))
}
}
@@ -402,12 +402,19 @@ class BilibiliSpider extends Spider {
this.vodList = await this.parseVodShortListFromJson(items)
}
async setSearch(wd, quick) {
async setSearch(wd, quick, pg) {
const ext = {
duration: '0',
};
let resp = JSON.parse(await this.category(wd, 1, true, ext));
let page = parseInt(pg)
const limit = 20
let resp = JSON.parse(await this.category(wd, page, true, ext));
this.vodList = resp["list"]
let pageCount = page;
if (this.vodList.length === limit) {
pageCount = page + 1;
}
this.result.setPage(page, pageCount, limit, pageCount)
}
getDashMedia(dash) {