Skip to main content
The Detection Library manages how Teamarr classifies and identifies streams. It contains keywords, patterns, and team aliases that help the stream matcher understand what sport, league, and event a stream belongs to. The library has four tabs, each handling a different aspect of stream classification.

Team aliases

Map alternate team names to their official names. IPTV providers often use shortened or unofficial team names — for example, “Niners” instead of “San Francisco 49ers”. Aliases tell Teamarr to treat them as the same team.

Table columns

ColumnDescription
AliasThe alternate name that appears in stream names
Maps ToThe official team name it resolves to
LeagueWhich league the alias applies to
ActionsDelete button

Adding an alias

1

Open the add form

Click Add Alias in the top-right corner of the Team Aliases tab.
2

Enter the alias text

Type the name your IPTV provider uses — exactly as it appears in stream names.
3

Select a league

Choose the league to filter the team list. This narrows down which teams are available to map to.
4

Select the team

Pick the official team the alias maps to from the filtered team list.
5

Create the alias

Click Create. The alias is immediately active for future matching runs.
To change an alias, delete it and create a new one. Aliases cannot be edited in place.
Team aliases don’t have an enable/disable toggle — they’re always active until deleted.

Keyword fields

All keyword tabs (Event Type Detection, League Hints, and Sport Hints) share the same create/edit form:
FieldDescription
Keyword/PatternThe text or regex to match in stream names
Regular expressionToggle between literal text matching and regex
EnabledWhether this keyword is active
Target ValueWhat the keyword maps to (league code or sport name). Not used for Event Type Detection.
PriorityNumeric priority — higher values are checked first
DescriptionOptional notes about the keyword

Enable and disable keywords

Click the toggle icon in the Actions column to enable or disable a keyword without deleting it. Disabled keywords appear dimmed in the table and are skipped during stream classification.

Import and export

All tabs support exporting and importing data as JSON files. This is useful for sharing configurations between instances or backing up your detection rules before making changes. Export — Click Export to download the current tab’s data as a JSON file. Import — Click Import and select a JSON file. The import results show how many items were created, updated, or skipped.
Export your detection library before making major changes. If stream matching breaks after editing keywords, you can re-import the backup to restore the previous state.

Build docs developers (and LLMs) love