Skip to content

Commit

Permalink
fix:修复LemonHD搜索没有相关种子时,误报错误
Browse files Browse the repository at this point in the history
没有相关结果时,LemonHD和其它使用NexusPHP架构的网站不同,还是会列出表头,后续脚本读取种子列表出错,导致误报连接出错
  • Loading branch information
fzlins authored Jul 2, 2022
1 parent f519bc1 commit 2cd6193
Showing 1 changed file with 1 addition and 1 deletion.
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 2cd6193

Please sign in to comment.