# Rss 规则

## 自定义代码

### 基本结构

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

### torrent

#### torrent 结构如下

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

#### torrent 各属性释义

| 属性   | 释义             |
| ---- | -------------- |
| size | 种子大小, 单位为 Byte |
| name | 种子名称           |
| hash | 种子 hash        |
| id   | 种子在所在站点的 id    |
| url  | 种子文件的下载链接      |
| link | 种子在所在站点的详细页面链接 |

## 举栗

### 使用正则匹配 Hares 站点官种

```javascript
// 使用正则匹配 Hares 站点官种，（单纯为了演示正则, 其实完全不需要使用正则....）
(torrent) => {
  const { name } = torrent;
  if (name.match(/Hares/)) {
    return true;
  }
  return false;
};

// 上面是为了看的清晰, 实际可以这么写...
(torrent) => torrent.name.match(/Hares/);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.vertex-app.top/zhu-yao-mo-kuai/rss-gui-ze.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
