brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Guide: put [tvdbid-…] in your Sonarr series folders so Jellyfin stops guessing the wrong show

put [tvdbid-…] in your Sonarr series folders so Jellyfin stops guessing the wrong show

Guide sonarr

4 steps 4 min read

I run Sonarr and Jellyfin on my Unraid server, and the one setting I would change first on a fresh install is a folder name. Jellyfin finds shows by looking at the folder name, and a bare title like The Office can match the wrong series. Put the TVDB id in the name and the guessing stops.

Time
4 min
Steps
4
Updated
19 Nov 2026

You will learn

  • Why the id in the folder name matters
  • Set the folder format in Sonarr
  • What it does not do for your existin…
  • How to check it worked

This guide gets you a Sonarr that names every new series folder like Series Name (2018) [tvdbid-79168], plus a safe way to fix the folders you already have. You need Sonarr v4 and Jellyfin 10.9 or newer; I checked the tokens and the folder syntax against the docs below, not against your setup.

Step 1 of 4: Why the id in the folder name matters

Jellyfin’s own docs say a show folder should look like “Series Name (year) [metadata provider id]”, and that the year and the id are optional but help it identify the media more reliably. The identifiers page lists [tvdbid-ID] (alias [tvdb-ID]) for TVDB, and says square brackets, parentheses and curly braces all work.

The TRaSH Guides add a detail that matters for shows: Jellyfin does not support IMDb ids for series, so TVDB is the one to use. Sonarr already knows the TVDB id of everything it manages, so it can write it into the name for you.

Step 2 of 4: Set the folder format in Sonarr

  1. Open Settings, Media Management and switch on Show Advanced at the top.
  2. Turn on Rename Episodes if it is off. The TRaSH Guides want it on for the naming to apply at all.
  3. Find Series Folder Format and set it to the TRaSH Guides’ Jellyfin value:
{Series TitleYear} [tvdbid-{TvdbId}]

The TRaSH page writes the same thing as {Series CleanTitleWithoutYear} {(Series Year)} [tvdbid-{TvdbId}], with the example The Series Title! (2010) [tvdbid-1520211]. Either gives you a name Jellyfin understands.

  1. Leave Season Folder Format at Season {season:00}. TRaSH calls it the only real option, and a Jellyfin forum thread reports duplicate seasons after someone customised it.
  2. Save.

Step 3 of 4: What it does not do for your existing series

The new format applies to series you add from now on. An older Sonarr forum thread says an existing series keeps its folder, and that was written for older versions, so check yours on a single show first. The episode filenames are a separate setting again.

My safe order for one existing show:

  1. Stop anything that is playing it, and look at the show in Sonarr: note its Path.
  2. Rename the folder on disk to the new pattern, for example /data/media/tv/Series Name (2018) [tvdbid-79168]. Use your own root path.
  3. In Sonarr, open the series, click Edit and change the Path to the renamed folder. Save. Do not tick anything that moves files when you only changed the path.
  4. Run Update Library in Jellyfin, or rescan that library.

One user on the Sonarr forum describes another route: edit the series, pick a root folder and apply, which moves the show and renames its folder to your scheme. I would only try that on a copy first, because I have not seen it in the official docs.

Step 4 of 4: How to check it worked

Add a test series in Sonarr and look at the folder it creates: it should end in [tvdbid-…] with the number from the series’ TVDB page. In Jellyfin, open the show, then the three dots, then Identify. If the folder name carries an id, Jellyfin has already used it; if the show still has the wrong poster, the id in the name is probably the wrong one.

The usual ways it breaks: a typo in the token (Sonarr leaves it as literal text in the name), brackets copied from a blog with smart quotes, or a series where TVDB has since merged two entries. In that case fix the id in the folder, not in Jellyfin.

My take

It costs you one field and it removes a whole class of “why is this show a different show” problems. I would do it before the library gets big, because renaming hundreds of folders later is a chore. For the folders you already have, go one series at a time and do not trust a bulk move until you saw it work once.

Further reading

Link