Page 1 of 1

Radarr Naming Schemes

Posted: 23 Sep 2023, 08:14
by rednoah
Radarr and FileBot are both highly customizable when it comes to naming and organizing your media files. The FileBot format engine is programmable and can mimic any Radarr naming scheme to any degree of 1:1 accuracy. However, the examples below prioritize simplicity over 1:1 correctness.



Example 1

Code: Select all

{Movie CleanTitle} {(Release Year)} {tmdb-{TmdbId}} {imdb-{ImdbId}} {edition-{Edition Tags}} {[Quality Full]}{[MediaInfo 3D]}{[MediaInfo VideoDynamicRangeType]}{[Mediainfo AudioCodec}{ Mediainfo AudioChannels]}[{Mediainfo VideoCodec}]{-Release Group}

Format: Select all

{ plex % {" {tmdb-$tmdbid}"} % {" {imdb-$imdbid}"} % {"{edition-$edition}"} % {" [$vs-$vf]"} % {" [$s3d]"} % {" [$hdr]"} % {" [$ac $channels]" } % {" [$vc]"} % {" -$group"} }

Example 2

Code: Select all

{Movie Title} {(Release Year)} {Edition Tags} {Quality Full} {MediaInfo VideoDynamicRange} {MediaInfo AudioCodec} {MediaInfo AudioChannels}

Format: Select all

{ny} {tags} {vs}-{vf} {hdr} {ac} {channels}

Example 3

Code: Select all

{Movie TitleThe} {(Release Year)} [tmbdid-{TmdbId}] [imdbid-{ImdbId}] {edition-{Edition Tags}} {[Quality Full]}{[MediaInfo 3D]}{[MediaInfo VideoDynamicRangeType]}{[Mediainfo AudioCodec}{ Mediainfo AudioChannels}][{Mediainfo VideoCodec}][{MediaInfo VideoBitDepth}]{MediaInfo AudioLanguages}{-Release Group}

Format: Select all

{n.sortName()} ({y}) [tmdbid-{tmdbid}] [imdb-{imdbid}] {"{edition-$edition}"} {vs}-{vf} {s3d} {hdr} {"${bitdepth}bit"} {ac} {channels} {vc} {audioLanguages}{-group}

Example 4

Code: Select all

Avatar (2009) {tmdb-19995}/Avatar (2009) [Bluray-2160p]

Format: Select all

{ ~plex.id % { " [${width >= 1280 ? 'Bluray' : 'DVD'}-${vf}]" } }
** this example assumes that {vs} source media is undefined and so uses {width} to guess the source medium instead



Re: Radarr Naming Schemes

Posted: 22 Feb 2025, 14:36
by brijazz
It seems that Filebot's {hdr} binding gives different results than Radarr's {[MediaInfo VideoDynamicRangeType]} binding. If a file has both DV and HDR10, Filebot's {hdr} returns only DV, while Radarr returns DV HDR10. Is there any way to more closely replicate Radarr's behaviour?

Re: Radarr Naming Schemes

Posted: 22 Feb 2025, 14:57
by rednoah
brijazz wrote: 22 Feb 2025, 14:36 If a file has both DV and HDR10, Filebot's {hdr} returns only DV, while Radarr returns DV HDR10. Is there any way to more closely replicate Radarr's behaviour?
e.g. if hdr is Dolby Vision then print DV HDR10 instead:

Format: Select all

{ hdr.replace('Dolby Vision':'DV HDR10') }

:idea: If you mean to add a DV+HDR10 (Dolby Vision with HDR10 fallback) marker then see {hdr} binding for example code.

Re: Radarr Naming Schemes

Posted: 22 Feb 2025, 15:22
by brijazz
Thanks. But would this replacement result in files that only have Dolby Vision being named incorrectly?

Re: Radarr Naming Schemes

Posted: 22 Feb 2025, 16:46
by rednoah
:?: Do you mean Dolby Vision with HDR10 fallback as opposed to just Dolby Vision? The code { hdr.replace('Dolby Vision':'DV HDR10') } simply replaces the text Dolby Vision with DV HDR10. No more. No less.

:idea: If you mean to add a DV+HDR10 (Dolby Vision with HDR10 fallback) marker for files that have Dolby Vision with HDR10 fallback then see {hdr} binding for example code:

Format: Select all

{ video.HDR_Format =~ /Dolby Vision/ && video.HDR_Format_Compatibility =~ /HDR10/ ? 'DV+HDR10' : hdr }

Re: Radarr Naming Schemes

Posted: 22 Feb 2025, 19:39
by brijazz
Yes - I'd love for the {hdr} binding (or some equivalent instruction) to be able to output "DV" if only DV is present and "DV HDR10" if both DV and HDR10 are present. I'll look at the second example you posted, that seems like it will do the trick.

Re: Radarr Naming Schemes

Posted: 23 Feb 2025, 06:48
by rednoah
e.g. check for DV+HDR10 and DV specifically and otherwise default to the {hdr} binding:

Format: Select all

{ video.HDR_Format =~ /Dolby Vision/ ? video.HDR_Format_Compatibility =~ /HDR10/ ? 'DV+HDR10' : 'DV' : hdr }