Seed boosting (brush tasks)
A brush task picks fresh free torrents (or the other discounts you allow) from one site's torrent list, pushes them to a downloader, and removes them by rule after they have seeded for a while, so you build up upload and bonus. It runs separately from RSS subscriptions; turning a brush task on does not change how RSS works.
Brushing adds requests to the site and keeps torrents moving in and out of your downloader. Before you turn a task on, make sure the site's rules allow it, and check the site's requirements for new-torrent download speed, H&R, and seeding time.
Create a task
Open Download → Brush tasks in the navigation and click New task. One task covers one site and one downloader:
| Setting | Meaning |
|---|---|
| Site | Built-in sites only, and the list shows enabled sites only: configure the site's credentials and enable it under Sites first. Brushing reads the torrent list and downloads torrents with the site credentials, so it needs no RSS link and works even when your account class cannot generate one yet |
| Section | M-Team only. The general and adult sections are two separate lists: choose General (综合区), Adult (成人区), or Both (两个都读). General by default |
| Downloader | Where torrents are pushed. The save path can be one of this downloader's preset folders or any path you type; an empty save path or category uses the downloader's default |
| Extra tags | Optional. The site name, pt-tools-brush, and the task tag pt-brush-<task id> are always added |
| Check interval | How often a round runs. At least 5 minutes, 10 by default |
| Enable after saving | New tasks are off by default; turn the task on once you have checked the settings |
Each round of an enabled task does three things in order: samples the task's torrents (records upload and download), removes torrents by the removal rules, and adds new torrents within the limits.
Entry conditions
Each round reads the site's torrent lists (subject to the site's own rate limit) and checks every item locally. Which lists are read follows Discount types:
- HDSky: one list per checked discount type, that is the free list and the 2x free list (both are checked by default; the free list is read first). With any type checked besides these two, the unfiltered list is read instead and the discount types are applied locally. HDSky limits how often it can be visited (once per 60 seconds), so two list reads are at least 61 seconds apart, and a round takes one to three minutes longer.
- Other sites: with only "Free" checked it is the site's free-torrent list (the "free only" filter of NexusPHP sites, the free filter of Unit3D and Gazelle sites); with any other type checked ("2x free" is checked by default) it is the unfiltered list, and the discount types are applied locally, because the site's free filter misses the other discounts (the NexusPHP "free only" filter leaves out even 2x free). The first page of the unfiltered list can hold fewer free torrents than the free list.
- M-Team: always reads the full list and picks locally. A page holds 100 torrents, pinned ones first. With Both, the general and adult sections are requested once each, a torrent listed in both counts once, and when one section cannot be read the other is still used and the run result gives the reason; when the general section hits rate limiting, an expired login or a Cloudflare challenge, the adult section is not requested in that round.
Sites whose paging has been checked (HDSky and PTT for now) read a second page when there are not enough candidates: after the first page of every list, torrents added before, already in the downloader, or not meeting the conditions are set aside, and when fewer candidates remain than the downloads the task can still start, the second page of each list whose first page was not empty is read in order, counting again after every page and stopping once there are enough. Each list is read for at most 2 pages and a round reads lists at most 4 times; a second page identical to the first is not counted twice. Reading lists takes at most 3 minutes per round (waiting time not included), and no further page is read when the rest of the round cannot fit the wait, one more page, and 1 minute for adding torrents. Other sites read the first page only. The steps of each run record say which page of which list was read and how many torrents it had, plus the total after removing duplicates when more than one page was read.
When a list or a page cannot be read, the round goes on with what was read, the run result names the list and page, and the round counts as partly failed; when nothing can be read, the round fails. When the site limits the request rate (such as HDSky's 请求过于频繁 page), the login has expired, or a Cloudflare challenge appears, the round reads no further lists from that site. After a temporary network error (connection reset, timeout) or a server error (5xx), the request is retried twice with exponential backoff (about 2 and then 4 seconds, each plus a little random time, each retry first waiting for the site's rate limit); rate limiting, an expired login and a Cloudflare challenge are not retried. When the site returns something other than a torrent list (a block, maintenance or verification page), that page counts as not read and the error gives the page's title and its first words.
- Discount types: "Free" and "2x free" by default; you can add 50%, 2x 50%, and others. Some sites (such as M-Team) mix normal torrents into the list; they are filtered out here as well. M-Team single-torrent free (单种免费) and promotions that cover the torrent also count as free: such a torrent's own discount in the list can be 50%, so pt-tools judges it by the start and end time of the single-torrent free or the promotion instead of asking the site to filter by discount (filtering by the torrent's own discount would miss them).
- Discount remaining: How long the discount must still last, at least 60 minutes by default. Permanent free torrents without an end time are not limited.
- Size: Minimum and maximum size in GB; 0 means no limit. When a size limit is set, torrents whose size the list does not show are skipped.
- At most N seeders and at least N leechers: pick busy torrents with little competition.
- Published within: only take recent torrents; 0 means no limit.
- Title includes / excludes: one per line or comma separated, case-insensitive, matched against the title and subtitle.
- Exclude H&R: on by default. When the site has site-wide H&R enabled, every torrent from it counts as H&R (the same rule RSS downloads use). With the option off, only H&R torrents whose required seeding time is known are taken: when the site's built-in rules have no seeding time, fill in H&R seeding requirement (hours) (H&R 做种要求(小时)) in the site's settings. Until it is filled in, such torrents are not taken (the removal rules cannot tell when a torrent may go), and the run result says how many were skipped because the H&R seeding time is unknown (H&R 要求的做种时长未知). When the site's rules say that uploading a multiple of the size also meets H&R, you can fill in H&R upload target (times) (H&R 上传量达标(倍)) instead: H&R torrents with an unknown seeding time are then taken too, except those whose size the list does not show (the run result says H&R 做种时长未知,体积也未知,没法按上传量判断).
For M-Team tasks, the run result starts with the sections that were read, for example "M-Team 综合区、成人区第 1 页:列表 200 个、符合条件 3 个、加入 2 个" (general and adult sections, page 1: 200 listed, 3 eligible, 2 added). It sums up both lists; it is not the verdict on any single torrent.
Matching torrents are added in order of most leechers, then fewest seeders. A torrent any brush task has pushed from this site before (including ones already removed) is never added again, so two tasks never add the same torrent; torrents already in the downloader are skipped too.
Limits
| Limit | Meaning |
|---|---|
| Concurrent downloads | Maximum number of the task's torrents still downloading, 1–50, required |
| Total size | Maximum combined size of the task's active torrents; 0 means no limit |
| Added per day | Maximum combined size of torrents added today; 0 means no limit |
Pushes go through the same entry point as RSS downloads, so the disk-space protection and per-site seeding capacity checks still apply. When a single torrent does not fit (adding it would take free space below the minimum), it is skipped and the next torrents are tried; torrents at least as large are not downloaded again in that round. When free space is already at the minimum, free space cannot be read, or the site's seeding capacity is full, the round stops adding and tries again next round. The round also stops when three torrent files in a row fail to download, or when a torrent reaches the downloader but its local record cannot be written (that torrent is removed again).
Removal rules
A torrent is removed as soon as any rule matches. By default its data is deleted too (you can switch to removing the torrent from the downloader only); when another torrent still uses the data (a cross-seed of it, for example), only the torrent is removed and the data stays:
- Seeded for N hours: counted only for completed torrents.
- Ratio reaches N.
- Average upload below N KB/s: measured over the last M minutes (30 by default), and only for torrents that are complete, have seeded for at least M minutes, and have samples covering that period.
- No activity for N hours: measured from the last time the downloader recorded an upload or download of data for the torrent (qBittorrent and Transmission both record it), the same time auto-delete uses for inactivity. When the downloader does not report that time, brushing uses its own samples and removes the torrent when neither upload nor download grew in that time.
- Free period ending before download completes: on by default. If the discount ends before the next check, the torrent is removed in this round, so nothing is downloaded after the free period at the normal rate.
H&R torrents are never removed before they reach the site's required seeding time, including when the free period ends before they finish downloading. With H&R upload target (H&R 上传量达标) filled in the site's settings, a finished torrent that has uploaded enough also counts as met, and the removal rules apply to it as usual; unfinished torrents are not judged by upload.
A download counts as complete when it is at 100% and not in a checking or error state; torrents being checked or with missing files are not complete.
Brushing only touches torrents that carry the task's tag and were added by the task. If you remove the task tag from a torrent, or give it the keep tag (click Keep (保留) in the torrent list on the Downloader page; see Keeping torrents) or one of the auto cleanup protected tags, it is handed back to you: brushing stops removing it and never adds the same torrent again, and auto-delete handles it by its rules from then on (it is not deleted while it has the keep tag or a protected tag). Torrents removed by hand or by other means are marked "no longer in the downloader". After you switch a task to another downloader, the torrents it already added are still sampled and removed in their original downloader; if that downloader is temporarily unreachable, those torrents are left alone for the round.
Run history
Each task's actions include Run history (运行记录; History (记录) on phones), and clicking the result or error in the Last run (上次运行) cell opens it too. Every round, scheduled or started with Run now, adds one entry; the newest is at the top and expanded:
- Start time, scheduled or manual, duration, and status: Succeeded (成功); Partly failed (部分失败: the round finished but some torrents failed to download, push, remove, or record); Failed (失败: for example the site's torrent list could not be read or the downloader was unreachable); Not finished (没跑完: pt-tools exited in the middle of the round, recorded at the next start); Running (进行中).
- The round's summary and errors, the same as the task list's Last run.
- Expand an entry for its steps: how many torrents the task had and how much it had added today; which page of which list was read and how many torrents each had (plus the total after removing duplicates when more than one page was read), and how long the round waited for the site's interval between list reads; how many were added before, already in the downloader, or did not meet the conditions, with the reasons summarized and the first 30 of those torrents listed with their reason; which torrents were added (discount, size, when the discount ends, H&R seeding requirement); which were removed and why; which were no longer in the downloader; and why the round stopped adding (for example the concurrent download limit was reached or disk protection rejected a push).
Each task keeps its latest 500 entries from the last 14 days, and they are deleted with the task. When a round has a very long list of steps, the rest is not recorded and the entry says so.
Relation to auto cleanup
The torrents a brush task is managing are handled by the task's own removal rules; the auto-delete deletion conditions (seeding time, ratio, seeding competition, and so on) skip them, so the two sets of rules never compete. Ownership is recognised by the brush task's records, not by the pt-tools-brush tag: once the task is deleted or a torrent is handed back to you (task tag removed, or kept), auto-delete handles it by its rules even if it still carries pt-tools-brush. The emergency cleanup that runs when free disk space drops below the minimum still covers every torrent, brush torrents included, except those with the keep tag or a protected tag.
Turning off and deleting a task
- Turn off: no new torrents are added. Torrents already added keep being handled by the removal rules until they are all gone.
- Delete: the task, its statistics, its torrent records, and its run history are deleted. The torrents stay in the downloader and are no longer managed by brushing. When you delete a task, you choose what happens to them:
- Hand over to auto-delete (交给自动删种, the default): auto-delete handles them by its rules, and its protection rules still apply. If auto-delete is off, they stay in the downloader.
- Keep these torrents (保留这些种子): every torrent gets the
pt-tools-keeptag (see Keeping torrents), so auto-delete (including emergency cleanup), seeding competition and the deletion at the end of a free period leave them alone. If a downloader cannot be reached or a tag cannot be added, the task is not deleted and the dialog lists those torrents; the torrents already tagged stay kept and no longer belong to the task. Try again later, or hand them over to auto-delete instead. Torrents that are no longer in the downloader do not block the deletion.
- A task cannot be deleted or edited while a round is running; try again shortly (a round uses the settings read when it started).
Deleting a task in the mobile app, through MCP or with the AI assistant hands its torrents over to auto-delete.
Earnings and the daily report
The page header of the brush page has a Statistics switch with five steps: day, week, month, quarter, and year. It controls every earnings figure on the page, and the choice is remembered in the browser.
| Step | Range | Current period |
|---|---|---|
| Day | Last 30 days | Today |
| Week | Last 12 weeks | This week |
| Month | Last 12 months | This month |
| Quarter | Last 8 quarters | This quarter |
| Year | Last 5 years | This year |
- The number band at the top shows active torrents, the current period's upload and download (with the previous period next to it, for example last week 77.14 GB), and the overall ratio; the small bars in each cell are the last 7 periods.
- The task table's current period upload / download column (today when the step is day) is each task's earnings in the current period.
- The earnings card (for example earnings over the last 12 weeks) draws one bar per period for the upload. The readout above it shows the selected period's upload, download, added, and removed counts, and starts on the current period; hover a bar, or click the chart and use the left and right arrow keys, to see another period. Details lists every period as a table, newest first.
Earnings are the difference between two consecutive samples of each brush torrent's total upload and download in the downloader, grouped by day in the server time zone; when two samples straddle midnight, the increment is split between the two days by duration. Weeks start on Monday and quarters in January, April, July, and October. The current period only counts up to today, so this week or this month is usually lower than the previous one.
The brush page of the mobile app has the same five steps; tap or drag across the bars there.
With the daily report on, a report sent on a day with brush earnings gains a "Brush today" section: total upload, download, added, and removed, plus one line per task when there is more than one.
Migrating from Vertex
pt-tools brushing follows the common Vertex setups. The concepts map roughly like this:
| Vertex | pt-tools |
|---|---|
| Brush task (RSS task) | Brush task: one task covers one site and one downloader; torrents come from the site's torrent list rather than an RSS link |
| Selection rules | Entry conditions: discount type, discount remaining, size, seeders / leechers, age, title includes and excludes, exclude H&R |
| Removal rules | Removal rules: seeding time, ratio, average upload speed, inactivity, free period ending before completion; any one rule removes |
| Downloader limits (max downloads, space) | Limits: concurrent downloads, total size, added per day; disk protection and site seeding capacity come from the global settings |
| Tags / category | Extra tags and category; pt-tools-brush and the task tag are added automatically |
pt-tools does not support Vertex's custom script rules. For more complex conditions, split them into several tasks with different conditions.
API
| Endpoint | Purpose |
|---|---|
GET / POST /api/brush/tasks | List tasks (with active torrents and earnings) / create a task |
GET / PUT / DELETE /api/brush/tasks/<id> | Read, update, or delete a task; see below for torrents when deleting |
POST /api/brush/tasks/<id>/run | Run one round now and return its result; returns 502 when the site or downloader failed and the round did not finish |
GET /api/brush/tasks/<id>/runs?limit=<1–100>&offset= | Run history, newest first, with each round's steps |
GET /api/brush/tasks/<id>/torrents?state=active|removed|gone | The task's torrents |
GET /api/brush/stats?granularity=<period>&periods=<count> | Earnings per task and in total, grouped by period; see below |
All of these require a logged-in session.
When deleting a task, torrents says what happens to the torrents it leaves behind: handover (the default, hand them over to auto-delete) or keep (keep them with pt-tools-keep); any other value returns 400. With keep, success returns {"success": true, "kept": <torrents kept>, "missing": <torrents no longer in the downloader>}. When some torrents could not be kept, the task is not deleted and the response is 502, with failed listing the title, info_hash, downloader_id, downloader_name, and message of each one.
granularity is day, week, month, quarter, or year (default day); periods defaults to 30, 12, 12, 8, and 5 and is capped at 366, 104, 60, 40, and 20. Every period has its first day in date and its last day in end; the last period is the current one (end is its natural end date, while earnings only count up to today). The old ?days=<1–90> still works and equals that many day periods.