Incorrect or missing information? Sorting
External sorting tools
NOTE While SABnzbd supports a number of ways to rename files, external tools (like Sonarr, Radarr, etc.) allow for much more extensive automated download management. These tools can automatically search, add and handle renaming in almost every possible way!
Overview of available Automation Extensions for SABnzbd.
Sorting replaces any pattern keys in the sort string (such as %sn for the show or movie name) with real values, before creating the directory structure and renaming files. The sort string as well as the affected categories and job types can be set for every sorter. Sorters are tried in order of appearance, and can be reordered by dragging and dropping in the web interface. The first active sorter that meets both selection criteria (affected category and job type) is applied.
The job name serves as the primary source of information for the sorting. The more standard the naming, the better your chances of a job getting properly recognized, assigned the right job type, and correctly sorted. Additional information may be sourced from metadata embedded in the NZB.
NOTE If Sorting is active for a specific job, the "Deobfuscate final filenames" feature will not be applied.
|Enabled||Enable or disable a configured sorter.|
|Name||Set the name of the sorter.|
|Sort String||The sorting expression with pattern keys, constructing a path of your choice. If the sort string ends in a pattern that indicates a file name (.%ext or %fn), its last part will be used for renaming files; otherwise, the constructed path will be created as a directory and the downloaded files moved there without renaming. See the presets and the sort string examples section below for examples.|
|Affected Job Types
|The job type(s) this sorter should apply to. Use Ctrl or Shift to select multiple options.|
|Affected Categories||One or more categories this sorter should apply to. Use Ctrl or Shift to select multiple options.|
|The minimum file size that at least one file in a job must meet for the sorter to kick in.|
|Label to apply to sequences of files (such as CD1, CD2, ...). Rarely used nowadays; previously defaulted to CD%1 for movie sorting, where pattern key %1 is the sequence number.|
|Show or Movie Name||%sn||Show or Movie Name (case-adjusted)|
|Show or Movie Name||%sN||Show or Movie Name|
|%title||Show or Movie Name|
|Episode Name||%en||Episode Name|
|Original File Name||%fn||file name|
|Original Job Name||%dn||folder name|
Behind the scenes, the GuessIt module does much of the sorting-related guess work. In addition to the commonly-used features above that get their own pattern keys, the full suite of GuessIt properties is exposed. The available properties depend on the installed GuessIt version and are listed in the web interface under the pattern key.
Common, well recognized formats for season and episode numbers include 1x01 (SeriesxEpisode) or S01E01 (SseriesEepisode).
Show Name - 1x01 - Episode Name.nzb
The sorting includes support for season packs. Episode numbers are detected from the names of the downloaded files; all other information is based on the job name or metadata. To qualify for season pack handling, a job must be detected as type tv, its name must indicate a single season and either multiple episodes, or no episodes at all.
Examples of job names that would be recognised as season packs include:
Show Name S02E04-05-06 Resolution-Group.nzb
Show Name S03E02E05E66.nzb
Show Name 4x01-02.nzb
Season pack handling is automatically activated for qualifying jobs, unless it has been disabled globally via the Special
Most standard date formats are recognized, including
Sort String examples
Job Name as File Name:
Example: Job Name.mkv
1x01 Season Folder:
%sn/Season %s/%sn - %sx%0e - %en.%ext
Example: Show Name/Season 1/Show Name - 1x05 - Episode Name.mkv
S01E01 Season Folder:
%sn/Season %s/%sn - S%0sE%0e - %en.%ext
Example: Show Name/Season 1/Show Name - S01E05 - Episode Name.mkv
1x01 Individual Episode Folder:
%sn/%sx%0e - %en/%sn - %sx%0e - %en.%ext
Example: Show Name/1x05 - Episode Name/Show Name - 1x05 - Episode Name.mkv
S01E01 Individual Episode Folder:
%sn/S%0sE%0e - %en/%sn - S%0sE%0e - %en.%ext
Example: Show Name/S01E05 - Episode Name/Show Name - S01E05 - Episode Name.mkv
Show name and season directories without file renaming:
Example: Show Name/Season 1/old file name.avi
%title (%y)/%title (%y).%ext with multipart label
Example: Movie Name (2000)/Movie Name (2000) CD1.mkv
Example: Movie Name (2000).mkv
Example: 2000/Movie Name (2000).mkv
Example: 00/Movie Name (2000).mkv
Show Name folder:
%t/%t - %y-%0m-%0d - %desc.%ext
Example: Show Name/Show Name - 2009-01-02 - Episode Name.mkv
%y-%0m/%t - %y-%0m-%0d - %desc.%ext
Example: 2009-01/Show Name - 2009-01-02 - Episode Name.mkv
%y-%0m-%0d/%t - %y-%0m-%0d - %desc.%ext
Example: 2009-01-02/Show Name - 2009-01-02 - Episode Name.mkv