More > JRiver Media Center 30 for Mac

Remove Hung Closing Parenthesis From Renamed Folder

<< < (3/14) > >>

AudibleImagery:

--- Quote from: zybex on February 17, 2023, 06:31:55 am ---Sorry for the silly question, but are you pasting the expression as is or are you replacing the forward-slashes with backslashes?
What MC version do you have?
Try without the "replace slashes" option. MC shows you what it will do to each filename, so you don't actually need to run the Rename do see the results.

--- End quote ---


--- Quote from: lepa on February 17, 2023, 06:35:17 am ---I'm also working  ::)

Lose this:EDIT: no need to lose Mac but just that replace check  :D

REF:
https://wiki.jriver.com/index.php/Rename,_Move,_and_Copy_Files
"If you are intentionally using a calculated field to create directory structures in your Directories Template, you can uncheck the Replace slashes in expressions option to pass through any slashes found in an expression or field as-is. "

--- End quote ---

I'm using Media Center 30.0.41 (Intel). I'm pasting the expression as is. The only difference is that I'm using the [Date] field instead of [Year] but other than that the expressions are identical. I unchecked the "replace slashes" option and am still experiencing the same issue. Here's a screenshot of the Rename, Move, and Copy Files window:



The photo is a little grainy but I used the code Lepa gave me:
--- Code: ---[Album Artist]//If(IsEmpty([Date],1),,[Date] -) [Album] If(IsEmpty([Catalog #,0]),,/([Catalog #]/))
--- End code ---

The folder structure is formatting as follows: [Album Artist]/[Date] - [Album]/[Catalog #]/)/[Filename (name)] which results in a folder structure like this:
--- Code: ---Hawkwind/1978 - 25 Years on (Disc Two)/(2009 Atomhenge (UK) - ATOMCD 2006/)/[Filename (name)]
--- End code ---

lepa:
You could try without escapes (keep the replace slash.. unchecked), maybe Mac version is handling that escaping differently. seems to me that in your system escapes instead just creates new folders. Maybe some Mac guys could chime in if it doesn't work or MC devs if this a bug in Mac version...

--- Code: ---[Album Artist]//If(IsEmpty([Date],1),,[Date] -) [Album] If(IsEmpty([Catalog #,0]),,([Catalog #]))
--- End code ---

zybex:
I could briefly reproduce your problem - MC showed and extra ")" but only once, then it started working correctly again ? Looks like there's some sort of bug handling the forward slashes, but I can't reproduce it now. It showed the bug when I was typing an expression, but it worked correctly when I pasted the full expression in one go... weird.

EDIT: ninja'd by Lepa

Try pasting this with the "replace shashes" option enabled:
[Album Artist]\If(IsEmpty([Date],1),,[Date] -) [Album]If(IsEmpty([Catalog #,0]),,/([Catalog #]/))
Or this with that option OFF:
[Album Artist]//If(IsEmpty([Date],1),,[Date] -) [Album]If(IsEmpty([Catalog #,0]),,/([Catalog #]/))

AudibleImagery:

--- Quote from: lepa on February 17, 2023, 03:30:58 pm ---You could try without escapes (keep the replace slash.. unchecked), maybe Mac version is handling that escaping differently. seems to me that in your system escapes instead just creates new folders. Maybe some Mac guys could chime in if it doesn't work or MC devs if this a bug in Mac version...

--- Code: ---[Album Artist]//If(IsEmpty([Date],1),,[Date] -) [Album] If(IsEmpty([Catalog #,0]),,([Catalog #]))
--- End code ---

--- End quote ---

This works for albums with a catalog number but for albums without one it still leaves a closing parenthesis at the end of an album title " )" such as "2008 - The Dream Goes On - An Anthology 1985-1997 (Disc One) )"

AudibleImagery:

--- Quote from: zybex on February 17, 2023, 03:32:11 pm ---Try pasting this with the "replace shashes" option enabled:
[Album Artist]\If(IsEmpty([Date],1),,[Date] -) [Album]If(IsEmpty([Catalog #,0]),,/([Catalog #]/))
[/font]

--- End quote ---

This expression is the closest we've gotten so far but it still leaves a closing parenthesis at the end of an album title ")" such as "2008 - The Dream Goes On - An Anthology 1985-1997 (Disc One))"

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version