Plex/Radarr/Sonarr Compatable Schemas

All about user-defined episode / movie / file name format expressions
Post Reply
SovietBadger
Posts: 2
Joined: 10 Nov 2023, 20:06

Plex/Radarr/Sonarr Compatable Schemas

Post by SovietBadger »

It took me a bit to figure this out so here it is, maybe it will help someone else.

This is what I am using to rename files in place, in Radarr/Sonarr compatible format.

I put this together through various sources and a bunch of trial and error. If there is a better way, please let me know.

Movie Format

Format: Select all

{ny.clean()}/{n.clean()} ({y}) [{width >= 1280 ? 'Bluray' : 'DVD'}-{vf}]
TV Episodes Format

Format: Select all

{ny.clean()}/Season {s00}/{s00}x{e00}. {t.clean()}
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Plex/Radarr/Sonarr Compatable Schemas

Post by rednoah »

I would recommend just using the {plex} format to name and organize files correctly. See FAQ #1 for details:

Format: Select all

{ drive }/Media/{ plex.id }

e.g. {plex} format with custom "video source inference" based on video height:

Format: Select all

{ drive }/Media/{ plex.id % { [width >= 1280 ? 'Bluray' : 'DVD', vf].joining('-', ' [', ']') } }

Code: Select all

~/Media/Movies/Avatar (2009) {tmdb-19995}/Avatar (2009) [Bluray-2160p]
:idea: Please read the FAQ and How to Request Help.
SovietBadger
Posts: 2
Joined: 10 Nov 2023, 20:06

Re: Plex/Radarr/Sonarr Compatable Schemas

Post by SovietBadger »

Thank you!
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Plex/Radarr/Sonarr Compatable Schemas

Post by rednoah »

:idea: Please read the FAQ and How to Request Help.
Post Reply