update CAT
This commit is contained in:
+10
-3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user