TrueHD / Atmos Renaming

All about user-defined episode / movie / file name format expressions
Post Reply
scuppasteve
Posts: 1
Joined: 21 Jan 2017, 21:48

TrueHD / Atmos Renaming

Post by scuppasteve »

So, when i have TrueHD or Atmos files, the default setup listed below, causes it to try and create a folder due to the /. This is Windows 10. I know there is a way to do a substitution if a thing is detected, but i can find it, like if .{audio[0].codec}.= Atmos / TrueHD then "TrueHD". I know that format is way off, but something like that.

{n.space('.')}.{y}.{vf}.{source}.{audio[0].codec}.{vc}

http://i.imgur.com/Gi2HQgm.jpg

For this example, i would like to just output like this
Jack.Reacher.Never.Go.Back.2016.1080p.BluRay.TrueHD.x264.mkv
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TrueHD / Atmos Renaming

Post by rednoah »

If you use raw MediaInfo fields, then you need to clean the data yourself.

e.g. FileBot built-in String.slash() can help with that:

Code: Select all

'Atmos / TrueHD'.slash(' ')
:idea: Please read the FAQ and How to Request Help.
redbull666
Donor
Posts: 58
Joined: 08 Jan 2014, 20:45

Re: TrueHD / Atmos Renaming

Post by redbull666 »

scuppasteve wrote: 21 Jan 2017, 21:58 So, when i have TrueHD or Atmos files, the default setup listed below, causes it to try and create a folder due to the /. This is Windows 10. I know there is a way to do a substitution if a thing is detected, but i can find it, like if .{audio[0].codec}.= Atmos / TrueHD then "TrueHD". I know that format is way off, but something like that.

{n.space('.')}.{y}.{vf}.{source}.{audio[0].codec}.{vc}

http://i.imgur.com/Gi2HQgm.jpg

For this example, i would like to just output like this
Jack.Reacher.Never.Go.Back.2016.1080p.BluRay.TrueHD.x264.mkv
I needed something similar and ended up using this:

Code: Select all

movieFormat=Movies/{n} ({y})/{n} ({y}) [{vc}, {source}-{vf}, {audio[0].Format_profile.slash(' ').match('Atmos').replaceAll('Atmos', replacement= 'Atmos ')}{ac}-{channels}, {group}]{ext=='srt' ? ".en" : ''}
Still doing some more testing, but this seems to work.
Post Reply