Page 1 of 1

TrueHD / Atmos Renaming

Posted: 21 Jan 2017, 21:58
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

Re: TrueHD / Atmos Renaming

Posted: 22 Jan 2017, 06:58
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(' ')

Re: TrueHD / Atmos Renaming

Posted: 14 Nov 2017, 08:49
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.