How rules work: when, if, then

A rule does a job by itself: when something happens, if what you set is true, it does what you chose.

A rule does a job for you, by itself. Every rule has three parts:

What you chooseExample
WhenWhat starts itA provider brings new films
IfConditions (you may leave them out)The film's name contains CAM
ThenOne or more actionsLeave it out

Rules are under Settings → Rules, on every plan. Click New rule to make one: the form has the same three parts, then Test this rule. Watch one being made: Leave out or sort what an import brings.

The three kinds of "When"

  • An item is imported: works inside imports, on each live stream, film or TV show about to come in, from playlists, providers, watch folders and moves from another panel. Under From, pick which imports, or leave it empty for every import. See Leave out or sort what an import brings.
  • On a schedule: works on all your lines, MAG devices, Enigma2 devices or packages, every hour, every day, or at times of your own (Custom (cron)), in the time zone you pick. See Run a rule on your own schedule.
  • Something happens to a line: when a line is made, is renewed, is about to expire (a number of days before) or has expired. See Take a bouquet away before a line expires.

Works on says what the rule reads and changes. MAG devices and Enigma2 devices are the lines that have a box of that kind (see MAG and Enigma2 devices). For packages, see Packages.

If: the conditions

Click Add a condition, then pick what it reads (a name, a year, a line's days to expiry, its bouquets, a package's name…), how it compares, and the value.

  • With two or more conditions, choose All of these or Any of these.
  • With no condition, the rule works on every item.
  • contains reads whole words: CAM finds "Ion [CAM]", not "HDCAM". Upper or lower case does not matter, unless you tick Match case.
  • starts with finds a code in front however it is written: UK finds "UK: News", "|UK| News" and "[UK] News".
  • matches the pattern: * is any text, # a number, ? one character.
  • Other comparisons: is, ends with, does not contain, is empty, and, for experts, matches the regular expression.

Then: the actions

Imports (live streams, movies, TV shows):

  • Leave it out · Rename · Put in a category
  • Add bouquets · Set the logo · Set the genre (movies and TV shows)

Lines, MAG devices, Enigma2 devices:

  • Bouquets and package: Add bouquets · Remove bouquets · Move to a package
  • Time and status: Turn the line off · Turn the line on · Add days · Take days off · Set the connections
  • Tell people: Add a note · Send a message to its boxes · Email the owner · Email the customer
  • Boxes: Turn its boxes off · Turn its boxes on

Packages: Add bouquets · Remove bouquets · Turn the package on · Turn the package off

Many actions have an (i): point at it to read what the action does. Add days and Move to a package are free: no credits are taken. The emails go out through your mail server (Settings → Email).

Test before you save

Test this rule shows what the rule would do right now, and changes nothing, saved or not: how many it matches, how many it would change, and some of them with what would change. For an import rule, choose what to try it on: The providers' lists (what the next import would see), What is in the panel, or Names I type.

On The providers' lists, a test cannot read Rating and Genre: they come from TMDB as a film or show is imported. What is in the panel reads the ones your titles already have.

The order of the rules

Rules run from top to bottom: move one with its arrows. On one imported item:

  • Leave it out ends it: no rule below runs on that item.
  • Renames add up, one rule after the other. Conditions always read the name as the import gives it.
  • The first rule that gives a category, a logo or a genre decides it. Bouquets add up.
  • Stop here keeps the rules below away from an item this rule matched.

Limits and safety

  • Most changes in one run (500 at first, up to 100,000): a run that would change more waits for you to confirm. Import rules have no such limit.
  • Run now runs a rule on lines, devices or packages one time, right now, in the background. An import rule runs only inside imports.
  • A schedule runs at most every 5 minutes. A rule never runs twice at once.
  • Every run is in the rule's History, with what it changed, and you can undo it: see Rule history, undo and the change limit.
  • Turn a rule off with its switch to stop it without losing it. Deleting a rule keeps what it already did, and its history.
  • A rule holds up to 20 conditions and 10 actions.

Resellers

A reseller can make rules for their own lines and devices, and those of the resellers below them, once you give their group the Rule permissions (view, add, change, delete) under Users & Groups → Groups. No group has them at first. They see neither import nor package rules, nor the actions that give time or connections without credits (Add days, Move to a package, Set the connections). See Operators and resellers.

Rules you saved before

The rules you saved for imports on Sort into categories and Mass edit → Names (both under Streams) are rules now, marked Kept by … on the Rules page. Those pages still change them. Edit one on the Rules page and it becomes an ordinary rule.

Updated 22 November 2026