Skip to content

Instantly share code, notes, and snippets.

@df-a
Last active October 2, 2021 10:45
Show Gist options
  • Save df-a/2313419c96f00af21cd441894a22d634 to your computer and use it in GitHub Desktop.
Save df-a/2313419c96f00af21cd441894a22d634 to your computer and use it in GitHub Desktop.
TinyMediaManager file- and foldername rename strings

Movies rename strings

TinyMediaManager v3.x

Folders

Folder name:
${movieSet.titleSortable}/${title} (${year})/[${videoFormat}]/${edition}

Files

File name:
${originalTitle} ${- ,edition,} (${year}) [${videoFormat} ${videoCodec} ${audioCodec}]
example: "My Awesome Movie Collection/My Awesome Movie (1999)/[2160p]/My Awesome Movie (1999) [2160p h265 AAC].mkv"

Radarr

Source of inspiration: https://trash-guides.info/Radarr/V3/Radarr-recommended-naming-scheme/

Folders

Folder name:
{Movie Collection}/{Movie TitleThe} ({Release Year}) [imdb-{ImdbId}]
example: "The Movie Collection/The Movie Title (2010) [tt123456]"

Files

File name:
{Edition Tags}/{Quality Title}/{Movie Title} {Edition Tags} ({Release Year}) {[Custom Formats]}{[Quality Full]}{[MediaInfo Simple} {MediaInfo AudioChannels} {MediaInfo VideoBitDepth}bit]{[MediaInfo VideoDynamicRange]}{MediaInfo AudioLanguages}{[MediaInfo 3D]}{-Release Group} example: "Movie: Ultimate Extended Edition/Bluray-1080p/The Movie Title Ultimate Extended Edition (2010) [Surround Sound x264][Bluray-1080p Proper][x264 DTS 5.1 10bit][HDR][DE][3D]-EVOLVE"
Replace Illegal Characters: [x]
Rename Movies: [x]
Import Extra Files: .srt, .sub, .nfo

TV Shows rename strings

TinyMediaManager v3.x

Folders

Folder name:
${showTitle} (${showYear})
Season folder name:
Season ${seasonNr}/${videoFormat}

Files

Episode file name:
${showTitle} - ${seasonNr2}x${episodeNr2} - ${title} [${videoFormat} ${videoCodec} ${audioCodec}]

example: "The Falcon and the Winter Soldier (2021)/Season 1/1080p/The Falcon and the Winter Soldier - 01x02 - The Star-Spangled Man [1080p h265 Atmos].mkv"

Sonarr v3.x

Source of inspiration: https://trash-guides.info/Sonarr/V3/Sonarr-recommended-naming-scheme/

Folders

Series Folder name:
{Series TitleTheYear} TVDB:{[TvdbId]}
Season folder format:
Season {season:00}

Files

Episode file name format, standard:
{Series.Title}.{season:00}x{episode:00}.{Episode.Title}.{Quality.Title}.{PREFERRED WORDS}.{MediaInfo VideoBitDepth}bit.{MediaInfo VideoDynamicRange}.{MediaInfo VideoCodec}.{MediaInfo.AudioCodec}.{MediaInfo.AudioChannels} {MediaInfo AudioLanguages} {[Release Group]}
Single Episode: The.Series.Title!.01x01.Episode.Title.(1).720p.HDTV.INTERNAL.10bit.HDR.x264.DTS.5.1 [RlsGrp]
Multi Episode: The.Series.Title!.01x01-02-03.Episode.Title.720p.HDTV.INTERNAL.10bit.HDR.x264.DTS.5.1 [RlsGrp]

Episode file name format, daily shows:
{Series.Title}.{Air-Date}.{Episode.Title}.{Quality.Title}.{PREFERRED WORDS}.{MediaInfo.AudioCodec}.{MediaInfo.AudioChannels}.{MediaInfo VideoBitDepth}bit.{MediaInfo VideoDynamicRange}.{MediaInfo VideoCodec} {MediaInfo AudioLanguages} {[Release Group]}
Example: The.Series.Title!.2013-10-30.Episode.Title.(1).720p.HDTV.INTERNAL.DTS.5.1.10bit.HDR.x264 [RlsGrp]

Episode file name format, universal (anime style):
{[Release Group]} {Series.Title}.{absolute:000}.{season:00}x{episode:00}.{Episode.CleanTitle}.{Quality.Title}.{PREFERRED WORDS}.{MediaInfo.AudioCodec}.{MediaInfo.AudioChannels}.{MediaInfo VideoBitDepth}bit.{MediaInfo VideoDynamicRange}.{MediaInfo VideoCodec}.{MediaInfo AudioLanguages}
Single Episode: [RlsGrp] The.Series.Title!.001.01x01.Episode.Title.1.720p.HDTV.INTERNAL.DTS.5.1.10bit.HDR.x264.[JA]
Multi Episode: [RlsGrp] The.Series.Title!.001-002-003.01x01-02-03.Episode.Title.720p.HDTV.INTERNAL.DTS.5.1.10bit.HDR.x264.[JA]

To get {Quality Full} shown as, for example, [x264 DTS] you have to input it as {[Quality Full]}. { Quality Full } and {-Quality Full-} are also supported as spacers. Either side or both sides, doesn't matter, just do not alter the variable name ("Quality Full" in this case). The interpreter will pass the character along.

Multi-Episode style: extend
Specials Folder Format: Specials

@df-a
Copy link
Author

df-a commented May 22, 2021

Regex for common streaming services once they are already in, e.g. [NF]

\[(\bNF\b|\bNETFLIX\b)\]\[WEB(DL|Rip)-.*(p|i)\]
\[(\bAMZN\b|\bAMAZON\b)\]\[WEB(DL|Rip)-.*(p|i)\]
\[(\bHMAX\b)\]\[WEB(DL|Rip)-.*(p|i)\]
\[(\bSHO\b)\]\[WEB(DL|Rip)-.*(p|i)\]
\[(\bDNSP\b|\bDNSY\b|\bDISNEY\b)\]\[WEB(DL|Rip)-.*(p|i)\]
\[(\bQIBI\b)\]\[WEB(DL|Rip)-.*(p|i)\]
\[(\bHULU\b)\]\[WEB(DL|Rip)-.*(p|i)\]
\[(\bPCOK\b)\]\[WEB(DL|Rip)-.*(p|i)\]
\[(\bDCU\b)\]\[WEB(DL|Rip)-.*(p|i)\]
\[(\bHBO\b)\]\[WEB(DL|Rip)-.*(p|i)\]
\[(\bRED\b)\]\[WEB(DL|Rip)-.*(p|i)\]
\[(\bIT\b)\]\[WEB(DL|Rip)-.*(p|i)\]
\[(\bPMNT\b)\]\[WEB(DL|Rip)-.*(p|i)\]
\[(\bVMEO\b)\]\[WEB(DL|Rip)-.*(p|i)\]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment