After the Plex announcement yesterday that they will deprecate the TVDB metadata provider in favor of TMDB, it occurred to me that all my TV directory paths use TVDB series IDs like so:
/mnt/media/Shows/The Office (US) (2005) {tvdb-73244}
This isn't ideal since the entire point of the series ID is to help with matching in Plex. So, I decided to switch all my series tags over to TMDB IDs like this:
/mnt/media/Shows/The Office (US) (2005) {tmdb-2316}
Before you begin, please note that this will temporarily confuse Plex until you re-scan your TV libraries. Until that scan is performed, Plex will think the items have been unmounted or deleted. I recommend testing this process initially on a few shows just so that you understand the process and ensure that you do it correctly. It's also worth performing backups on both Sonarr and Plex before attempting this so that you can roll back these changes if something goes awry.
To do this in Sonarr:
- First, you'll need to update the series folder format. Go to Settings > Media Management > Episode Naming and look for the
Series Folder Format option. Switch the series ID token the folder path from {tvdb-{TvdbId}} to {tmdb-{TmdbId}}. Save these changes. - Next, filter your library down to the series you want to change. In my case, I created a new custom filter for any paths that contained "tvdb." If your library items are spread across different root directories, you'll want to add the root directory as a filter item here so that your filter only includes items with the same root directory (e.g.,
/mnt/media/kids-shows/, /mnt/media/4k-shows, etc.). - Next, click the
Select Series button, then click Select All - In the bottom left of the page, click the
Edit button - In the
Root Folder drop down, select the same root directory that these items already exist in - Click
Apply Changes
You will be prompted about whether you want to move the files manually or automatically (the default). Pick the automatic option. Sonarr will now update all the series folders with the new TMDB series IDs.
You can verify that the paths have been updated by selecting an item and checking the folder path under the series title.
Now that the paths have been updated, you can head over to Plex and perform a library scan on each impacted TV library. In my case, that was only one library, but you may have separate TV libraries and they will all need to be scanned. Plex is smart enough to automatically re-match all the shows to the database entries that were already there, so no other actions are required.