Need help removing one space

Support for Windows users
Post Reply
HSK
Posts: 2
Joined: 11 Jul 2024, 18:33

Need help removing one space

Post 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!
User avatar
rednoah
The Source
Posts: 23355
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Need help removing one space

Post 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
:idea: Please read the FAQ and How to Request Help.
HSK
Posts: 2
Joined: 11 Jul 2024, 18:33

Re: Need help removing one space

Post by HSK »

That worked great, thank you!!!!
Post Reply