RSS — the Feed That Fetches
Outcome: a client that fetches by
itself — a feed it watches, a rule that
decides, and a torrent that appears in
the list with no hand on the keyboard.
Evidence: transcript t09, including
the mistake the lab made on the way.
Why a feed belongs in a torrent client
Some files arrive on a schedule: a
weekly data release, a new episode of
something freely licensed, a fresh
install image. An RSS feed is the
schedule written down — a small XML
document a publisher updates, listing
items with titles and links. A client
that can read feeds can close the loop:
wake, check the list, fetch what is
new, with no person browsing anything.
qBittorrent's reader lives behind two
preference switches, both set in t09:
rss_processing_enabled (read feeds at
all) and rss_auto_downloading_enabled
(let rules act on what they read).
The lab's feed
The lab published its own feed — real
publishers, real swarms and other
people's release schedules being
exactly what this guide does not touch.
A one-line Python server on loopback
served qbittorrent-lab/feed.xml, an
invented Lab Data Feed announcing two
items: Weather log – week one data
file (its enclosure: the lab's second
fixture torrent) and Committee meeting
minutes (an enclosure that exists
nowhere). Added and refreshed:
curl -s -b cookies.txt \
--data 'url=http://127.0.0.1:18090/feed.xml&path=LabFeed' \
.../api/v2/rss/addFeed
curl -s -b cookies.txt --data 'itemPath=LabFeed' \
.../api/v2/rss/refreshItem
rss/items?withData=true shows the
reading worked: both articles, each
with the torrentURL the reader lifted
from the item's enclosure. Reading,
note, adds nothing — the list of
torrents is unchanged. Rules do the
fetching.
Rules, and the field that wasn't there
A rule says: in these feeds, items
whose title matches this, download
themselves, into these settings. The
lab's rule: titles containing
weather, in the lab feed, saving to
B's folder. The first attempt used the
key feedURLs — the name older API
documentation and long memory suggest —
and was accepted with a cheerful HTTP
200. Read back, the rule sat attached
to no feeds at all:
{"mustContain": "weather", "affectedFeeds": []}
In this version the field is called
affectedFeeds, and a rule naming
no feed governs nothing. Set again with
the right name, the read-back shows the
attachment — and this is the chapter's
real lesson, worth more than the
feature: the API's 200 means "stored",
not "as you meant it"; read back what
you wrote, in this API above all.
The fetch
One more refresh, and the rule fires:
[{"name": "weather-log.txt", "state": "stalledDL", "progress": 0},
{"name": "field-notes.txt", "state": "stalledUP", "progress": 1}]
The weather log added itself, hands
off. It stalls — in this lab nobody
seeds it, and chapter 7 has already
taught you to read stalledDL as a
peers problem, not a failure of the
feed. The meeting minutes were never
added: no rule matched them, so their
(phantom) torrent was never fetched,
never even requested. Matching is the
whole game — mustContain on titles,
mustNotContain to carve out
exceptions, regular expressions and an
episode filter for numbered series —
and everything unmatched costs the
swarm nothing.
In daily life the same shape watches
publishers you trust: a distribution's
image feed, a dataset's releases. The
rule dialect point stands, though: the
field names in your version are the
ones rss/rules reads back, whatever
any guide — this one included — calls
them.