Auto-Label New Downloads by Type (TV, Movies, Music, Books)

Apps & Tools 2 min read Updated Aug 22, 2026
On this page

Labels are how ruTorrent filters, Sonarr, Radarr and many scripts decide what a download is. This flow reads each finished torrent’s name and sets the label for you, with rules you can edit in plain JavaScript.

Before you start

Nothing to create — this flow only talks to your seedbox, which is already connected.

Open the template

  1. From the client area, open your seedbox service and click Open Liteflow on the Automation card.
  2. Click Create New → Start from Template and choose Auto-label new downloads (TV, movies, music, books).
  3. Click Use Template, keep Personal Project, and Confirm. The flow opens in the builder with every step in place.
Auto-label new downloads (TV, movies, music, books) — template page in Liteflow
Auto-label new downloads (TV, movies, music, books) — the imported flow in the Liteflow builder

How it decides

The Classify by name Code step looks for patterns: S01E02 or season means tv; a year plus 1080p/2160p/BluRay/WEB-DL means movies; FLAC/MP3/discography means music; epub/mobi/audiobook means books; everything else gets other.

Auto-label new downloads (TV, movies, music, books) — settings of the step you fill in

Change the rules

  1. Click Classify by name and edit the code. Each return { label: '…' } line is a rule; add your own regular expression above the last line.
  2. Click Test step to see which label a recent torrent would get.
  3. The Set label step applies step_1.label to the torrent — nothing to change there.

Test and publish

  1. Click a step and use Test step to see real data from your seedbox before going live.
  2. Click Publish. The flow is now on; the switch on the Automations page turns it off again.
  3. Open Runs whenever you want to see what fired and what each step returned.

If Something Does Not Work

  • Everything becomes other — your releases use different naming; add a rule matching a word they always contain.
  • Label not visible in ruTorrent — refresh ruTorrent; labels are applied a few seconds after the torrent finishes.
  • The seedbox step fails — open Connections and reconnect My seedbox (rTorrent). It uses the same username and password as ruTorrent.

Variations

  • Combine with the Telegram template by adding a Send Telegram message step after Set label that includes step_1.label.
  • Label by tracker instead: use trigger.name together with the torrent’s directory field.

More

New to Liteflow? Start with Liteflow: Automate Your Seedbox. Want a template that is not here? Click Suggest it on the Automation card in the client area.

Put this into practice

EvoSeedbox ships with one-click app installs and up to 10 Gbps per box.

Get your seedbox →