Hi
I got such great help last time with a template for renaming files. I hope I can get some advice again with creating or removing space/blank. I have a template for renaming files based on Series, Season, Episode, Name and Date. This give me as result something like this:
Game Of Thrones - (s01a01) Winter is coming [2011].mkv
But in some cases there is nothing in the fields Name or Date. In this case I use the following expression If(IsEmpty([Date],1),,[[Date]]). But as I have a blank between the two expressions Episode and Date the result is that either there will be a extra space in the end when there is no date, like this:
Game Of Thrones - (s01a01) Winter is coming .mkv
or there is missing a space when there is a date, like this:
Game Of Thrones - (s01a01) Winter is coming[2011].mkv
I have similar problem when some series don't have names for each episode and I either miss a space or there is double space. I have tried to add a space in the expression after the two commas like this If(IsEmpty([Date],1),, [[Date]]). But it doesn't have any effect. The only workaround I have found is to use _ (underscore). Is there any other way to do it?
Thanks for any guidance