Skip to content

Commit

Permalink
Merge pull request #26 from ronggang/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Bright-W committed Jul 4, 2022
2 parents 845cbed + 8dc04de commit 52cd2cc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions resource/schemas/NexusPHP/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@
"fields": {
"seeding": {
"selector": ["tr:not(:eq(0))"],
"filters": ["query.find('td.rowfollow:eq(2)').length"]
"filters": ["query.find('td.rowfollow:eq(2)').length != 0 ? query.find('td.rowfollow:eq(2)').length : query.length"]
},
"seedingSize": {
"selector": ["tr:not(:eq(0))"],
"filters": ["jQuery.map(query.find('td.rowfollow:eq(2)'), (item)=>{return $(item).text();})", "_self.getTotalSize(query)"]
"filters": ["query.find('td.rowfollow:eq(2)').length != 0 ? jQuery.map(query.find('td.rowfollow:eq(2)'), (item)=>{return $(item).text();}) : jQuery.map(query.find('td:eq(2)'), (item)=>{return $(item).text();})", "_self.getTotalSize(query)"]
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion resource/sites/hudbt.hust.edu.cn/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"schema": "NexusPHP",
"host": "hudbt.hust.edu.cn",
"collaborator": "Rhilip",
"collaborator": ["Rhilip", "枕头啊枕头"],
"searchEntry": [{
"name": "全站",
"enabled": true
Expand Down
2 changes: 1 addition & 1 deletion resource/sites/lemonhd.org/getSearchResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
let table = options.page.find(selector);
// 获取种子列表行
let rows = table.find("> tbody > tr");
if (rows.length == 0) {
if (rows.length <= 1) {
options.status = ESearchResultParseStatus.torrentTableIsEmpty; //`[${options.site.name}]没有定位到种子列表,或没有相关的种子`;
return [];
}
Expand Down

0 comments on commit 52cd2cc

Please sign in to comment.