Rss 规则

自定义代码

基本结构

// 提供 torrent 参数, torrent 为当前操作种子的信息
// 返回 true 则意为符合 Rss 条件, 添加该种
(torrent) => {
  return false;
}

torrent

torrent 结构如下

const torrent = {
  size: 0,
  name: '',
  hash: '',
  id: 0,
  url: '',
  link: ''
};

torrent 各属性释义

属性
释义

size

种子大小, 单位为 Byte

name

种子名称

hash

种子 hash

id

种子在所在站点的 id

url

种子文件的下载链接

link

种子在所在站点的详细页面链接

举栗

使用正则匹配 Hares 站点官种