首编于 2025年10月5日
1. 黑车
持续时间:1200s
(maindata, torrent) => {
const categoryList = ["Seed"];
const { state, category, uploadSpeed, downloadSpeed } = torrent;
if (categoryList.indexOf(category) !== -1) {
return false;
}
if (
state == "downloading" &&
downloadSpeed >= util.calSize(10, "MiB") &&
downloadSpeed / uploadSpeed >= 2.5
) {
return true;
}
return false;
};2. 下载人数少
持续时间:60s
(maindata, torrent) => {
const categoryList = ["Seed"];
const stateList = ["downloading", "stalledDL"];
const { state, category, leecher, uploadSpeed, addedTime } = torrent;
if (categoryList.indexOf(category) !== -1) {
return false;
}
if (
stateList.indexOf(state) !== -1 &&
leecher <= 10 &&
uploadSpeed <= util.calSize(500, "KiB") &&
moment().unix() - addedTime >= 900
) {
return true;
}
return false;
};3. 盒子
限制条件:↓
4. 慢车
持续时间:40s
(maindata, torrent) => {
const categoryList = ["Seed"];
const stateList = ["downloading", "stalledDL"];
const { state, uploadSpeed, progress, category, leecher } = torrent;
if (categoryList.indexOf(category) !== -1) {
return false;
}
if (
(moment().hour() >= 0 && moment().hour() <= 8) ||
maindata.leechingCount <= 10 ||
leecher >= 100
) {
return false;
}
if (
stateList.indexOf(state) !== -1 &&
uploadSpeed <= util.calSize(250, "KiB") &&
progress >= 0.1
) {
return true;
}
return false;
};5. 长时间不发车
持续时间:1800s
(maindata, torrent) => {
const categoryList = ["Seed"];
const { state, category, progress, addedTime } = torrent;
if (categoryList.indexOf(category) !== -1) {
return false;
}
if (
moment().hour() >= 0 &&
moment().hour() <= 8 &&
state == "stalledDL" &&
progress <= 0.05 &&
moment().unix() - addedTime >= 18000
) {
return true;
}
if (
state == "stalledDL" &&
progress <= 0.05 &&
moment().unix() - addedTime >= 14400
) {
return true;
}
return false;
};6. 无效做种
持续时间:1800s