Skip to content

Commit

Permalink
feat: SpeedApp 进一步适配脚本
Browse files Browse the repository at this point in the history
能搜出结果,但是仍然需要进一步维护
  • Loading branch information
ted423 committed May 31, 2022
1 parent 2237ba3 commit 033f62c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resource/schemas/Common/getSearchResult.js
Expand Up @@ -31,6 +31,7 @@
let selector = options.resultSelector;
let dataRowSelector = options.entry.dataRowSelector || "> tbody > tr";
selector = selector.replace(dataRowSelector, "");
let sellSelector = options.entry.dataSellSelector || ">td";
// 获取数据表格
let table = options.page.find(selector);
// 获取种子列表行
Expand Down Expand Up @@ -67,7 +68,7 @@
// 遍历数据行
for (let index = beginRowIndex; index < rows.length; index++) {
const row = rows.eq(index);
let cells = row.find(">td");
let cells = row.find(sellSelector);

let title = this.getTitle(row, cells, fieldIndex);

Expand Down
2 changes: 2 additions & 0 deletions resource/sites/speedapp.io/config.json
Expand Up @@ -20,6 +20,8 @@
"loggedRegex": "class=\"card-body p-0",
"resultType": "html",
"resultSelector": "div.card-body.p-0",
"dataRowSelector": "div.row.mr-0.ml-0.py-3",
"dataSellSelector": ">div",
"fieldIndex": {
"category": 0,
"title": 0,
Expand Down

0 comments on commit 033f62c

Please sign in to comment.