Page 1 of 1

Need help removing one space

Posted: 11 Jul 2024, 18:42
by HSK
Hi folks, Im new to Filebot and this forum - the program is almost perfect for my naming conventions - but im stuck on one bit. Defo user error/lack of knowledge.

This is what im trying to do. I have this expression format:-

X:/Movies/{plex.name}/{plex.name} [{vf} {hdr}]

Which will rename and move files for me, i get a result like this:-

M:/Movies/TRON - Legacy (2010)/TRON - Legacy (2010) [2160p HDR10]

BUT, if the file isn't HDR, I get this result (which is expected):-

M:/Movies/TRON - Legacy (2010)/TRON - Legacy (2010) [1080p ]

My question is, can I add something to my expression to get rid of that space at the end in the square bracket? I could have it like this:- [2160pHDR10] but I would prefer to have a space between vf and hdr.

Any help is much appreciated!

Re: Need help removing one space

Posted: 12 Jul 2024, 05:17
by rednoah
e.g. {plex} format

Format: Select all

M:/{ plex.id % { allOf{ vf }{ hdr }.joining(' ', ' [', ']') } }

:idea: Learn how {expressions} work and useful Helper Functions

Re: Need help removing one space

Posted: 12 Jul 2024, 09:08
by HSK
That worked great, thank you!!!!