Skip to content

Commit 60fb466

Browse files
author
Taois
committed
feat: 禁用翻页
1 parent 3a1d7cd commit 60fb466

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

spider/js/ftp[盘].js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ var rule = {
6565
},
6666
一级: async function (tid, pg, filter, extend) {
6767
let d = [];
68+
if (Number(pg) > 1) {
69+
return d
70+
}
6871
const _id = tid.split('$')[0];
6972
const _tid = tid.split('$')[1] || '/';
7073
let pan = rule.pans.find(it => it.id === _id || it.baseURL === _id);
@@ -128,7 +131,7 @@ var rule = {
128131
}
129132
}
130133

131-
function setAnonymous(ftpConfig){
134+
function setAnonymous(ftpConfig) {
132135
// 支持匿名 FTP 访问
133136
if (!ftpConfig.username || ftpConfig.username === 'your-username' || ftpConfig.username === '') {
134137
ftpConfig.username = 'anonymous';

spider/js/webdav[盘].js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ var rule = {
6565
},
6666
一级: async function (tid, pg, filter, extend) {
6767
let d = [];
68+
if (Number(pg) > 1) {
69+
return d
70+
}
6871
const _id = tid.split('$')[0];
6972
const _tid = tid.split('$')[1] || '/';
7073
let pan = rule.pans.find(it => it.id === _id || it.baseURL === _id);

0 commit comments

Comments
 (0)