首编于 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. 盒子

限制条件:↓
2025-10-05T06:31:33.png

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
2025-10-05T06:33:54.png

最后修改:2025 年 10 月 05 日
如果觉得我的文章对你有用,请随意赞赏