Home | Contact

Configure a NAS to Rename and Sort TV Episodes Automatically

A well-organised TV library makes a NAS far easier to use. Instead of browsing folders filled with inconsistent filenames, you can open Plex, Jellyfin, Kodi, or another media server and find each programme arranged by series, season, and episode.

Synology and QNAP systems can automate much of this work. A download or recording can be moved into an incoming folder, matched with episode metadata, renamed, and placed in the correct library directory without manual sorting.

The process depends on accurate metadata, sensible folder permissions, and a clear naming convention. It also needs careful handling of specials, duplicate files, subtitles, and episodes recorded from Australian broadcasters.

Automation should be used with content you own, have recorded lawfully, or are otherwise authorised to store. In Australia, copyright law can apply to copying and sharing television programmes, so a tidy media library should be paired with responsible file management.

Requirement Suitable approach Typical NAS option Best for
Basic renaming FileBot or a similar metadata tool Package, Docker, or desktop workflow Existing libraries
Ongoing episode management Sonarr with an authorised source Docker or NAS package Regular additions
Playback and indexing Plex, Jellyfin, or Kodi Native package or container Smart TVs and mobile devices
Protection against mistakes Snapshots, recycle bins, and backups Btrfs, Hyper Backup, HBS, or external storage Recovery and maintenance

Choose A Naming Convention Before Automating

A consistent structure gives every application the same information. A practical format is Series Name/Season 01/Series Name - S01E01 - Episode Title.ext. It is readable on a computer, works well with Plex and Jellyfin, and separates episodes from artwork, subtitles, and unrelated downloads.

For Australian users, include the year when a programme has a remake or a title that changes over time. A folder such as Doctor Who (2005) avoids confusion with the earlier series. Date-based folders can also help with news, sport, and one-off broadcasts that do not fit a standard season model.

Keep the original file in a temporary location until the metadata match has been checked. Automated tools can occasionally identify a similarly named American, British, or Australian programme. A staged workflow is safer than allowing new files to be moved directly into the main library.

Prepare Folders And NAS Permissions

Create separate shares or top-level folders for Incoming, TV Shows, Movies, Recordings, and Backups. The automation tool should have write access to the incoming and TV folders, while playback applications generally need read access. Limiting permissions reduces the chance that an indexing service will delete or alter unrelated files.

On Synology, this can be configured through Shared Folder permissions and user or group accounts. QNAP administrators can create equivalent shared folders and application users. Avoid running every container or package with administrator access, especially when the system is reachable from outside the home network.

A sensible folder layout usually looks like this:

Keep temporary downloads and completed media on the same volume when possible. This allows a fast rename or move instead of a long copy-and-delete operation. If the folders sit on different volumes, the application may need twice the free space during transfers.

Install A Metadata And Rename Tool

FileBot is useful for cleaning an existing collection, while Sonarr is designed for continuous episode management. Both can identify series and episodes from metadata services, then apply a naming pattern. On a Synology or QNAP NAS, Docker or Container Manager is often the most flexible installation method, although package availability varies by model and operating system version.

Mount the relevant folders inside the container with clear paths. For example, map the NAS directory containing incoming files to /data/incoming and the media library to /data/tv. Consistent paths prevent a common Docker problem where the application sees a file but cannot move it because the destination is mounted differently.

Set the media server to scan the completed library after a move. Plex can use automatic library scans, while Jellyfin offers scheduled and real-time monitoring depending on the file system and container setup. A short delay before scanning helps avoid showing partially copied files.

Set Metadata Rules For Reliable Episode Matching

Metadata matching works best when the filename contains a series title and an episode number. Patterns such as Series.Name.S02E04.1080p.mkv are usually easier to identify than filenames containing only a broadcast date or an internal recorder code. Remove unnecessary release tags from the visible filename, but retain technical information in the media server where it is useful.

A strong naming template can include:

Use Australian English metadata carefully. A programme may be produced locally in Sydney or Melbourne but appear in international databases under a different spelling, title, or broadcast year. ABC, SBS, and commercial network recordings can also have episode names that differ from the listing supplied by an electronic programme guide.

Do not overwrite files immediately after a failed match. Configure the application to place uncertain items in a review queue or leave them in Incoming. This gives you a chance to correct the series identifier, season number, or date before the NAS changes the library structure.

Handle Specials, Subtitles, And Duplicate Episodes

Specials are a frequent source of incorrect sorting. Christmas episodes, reunion programmes, documentaries, and behind-the-scenes features may be listed as season zero. Store them in a Specials folder when the metadata provider marks them as special, rather than forcing them into Season 01.

Australian television recordings may contain multiple versions of the same broadcast, such as a standard-definition recording, a high-definition recording, and a repeat with different advertising breaks. Use a duplicate policy based on resolution, file size, or recording date. Keep the best authorised copy and move the rest to a quarantine folder until verified.

Subtitles and artwork should follow the episode filename. For example, Series Name - S01E01 - Pilot.en.srt lets most media servers associate the subtitle automatically. Avoid putting subtitles in a separate folder unless the application has been configured to search there.

Schedule Imports, Scans, And Backups

Set the automation cycle to run after the expected recording or import time. A nightly schedule suits many home users, while a more frequent scan is useful for a media server that receives episodes throughout the day. On an Australian NBN connection, download speed may be adequate for large media transfers, but uploads can remain limited, so remote backup scheduling should avoid busy household hours.

A UPS is worthwhile for a NAS in Brisbane, Perth, Adelaide, or regional areas where storms and short power interruptions can occur. It gives the system time to shut down cleanly and reduces the risk of a damaged database during a rename or index operation. Enable SMART checks and storage alerts as well.

Use snapshots or versioned backups for the library database and configuration. The media itself may be replaceable, but watched status, posters, custom collections, and automation settings can take considerable time to rebuild. Synology Hyper Backup and QNAP Hybrid Backup Sync can copy this information to an external drive or another NAS.

Test The Workflow And Protect Your Library

Start with five to ten sample episodes covering different cases: a standard episode, a special, a subtitle, a duplicate, and a programme with a remake. Confirm the final folder, filename, metadata, permissions, and playback before processing the entire collection.

A useful verification checklist includes:

Keep the NAS off direct internet exposure where possible. Use a VPN or a secure vendor relay instead of forwarding administrative ports, and enable multifactor authentication. Update DSM, QTS, containers, and media server applications through trusted sources, since NAS devices are attractive targets when old packages remain exposed.

Finally, retain evidence of lawful ownership or recording rights for stored programmes and do not share copyrighted episodes publicly. Australian copyright exceptions are specific and do not generally make unrestricted distribution acceptable. A private, well-labelled library is easier to manage, back up, and audit than a collection assembled without clear provenance.

Once the test files behave correctly, point the automation tool at the full incoming directory and allow it to process the library in stages. A carefully designed naming rule, restricted permissions, and regular backups will turn a Synology or QNAP NAS into a dependable television archive.