update CAT

This commit is contained in:
qist
2024-05-23 19:28:35 +08:00
parent ab6af24701
commit 574731cf4e
18 changed files with 401 additions and 612 deletions

View File

@@ -1,4 +1,4 @@
import {__jsEvalReturn} from './wogg.js';
import {__jsEvalReturn} from './jiujiuliu.js';
import * as Utils from "../lib/utils.js";
@@ -51,7 +51,7 @@ async function testMusicPlay(vodDetail) {
}
async function test() {
let siteKey = 'wogg';
let siteKey = 'jiujiuliu';
let siteType = 3;
await spider.init({
skey: siteKey, stype: siteType, ext: {
@@ -68,43 +68,40 @@ async function test() {
let classes = JSON.parse(await spider.home(true));
console.debug(JSON.stringify(classes))
// 测试详情
let detail1 = JSON.parse(await spider.detail('/index.php/voddetail/84217.html'))
await testPlay(detail1)
// 测试搜索
let search_page = JSON.parse(await spider.search("庆余年", false, 1))
console.debug(JSON.stringify(search_page))
//测试首页列表
let homeVod = JSON.parse(await spider.homeVod())
console.debug(JSON.stringify(homeVod));
// 测试分类
let catePage = JSON.parse(await spider.category("2", "1", undefined, {}));
let catePage = JSON.parse(await spider.category("/vod/type/id/1.html", "1", undefined, {}));
console.debug(JSON.stringify(catePage))
// 测试详情
let detail1 = JSON.parse(await spider.detail("/detail/192466.html"))
await testPlay(detail1)
// 测试搜索
let search_page = JSON.parse(await spider.search("庆余年", false, 1))
console.debug(JSON.stringify(search_page))