More > JRiver Media Center 30 for Mac
Remove Hung Closing Parenthesis From Renamed Folder
zybex:
The syntax error is likely because I didn't test it and forgot to escape the parenthesis of "Album Artist (auto)". It should be like this:
FieldQuery(Album Artist /(auto/),[Album Artist (auto)],Catalog #,1,0)
Then you can use it like so for renaming, after putting that into an [Album Catalog] calculated field:
[Album Artist]//trim(replace(replace(replace([Album] /([Album Catalog]/),[Lossy],),[Incomplete],),/(/),))
Or, as a combined expression, no extra field required:
[Album Artist]//trim(replace(replace(replace([Album] /(FieldQuery(Album Artist /(auto/),[Album Artist (auto)],Catalog #,1,0)/),[Lossy],),[Incomplete],),/(/),))
Try it in Zelda.
AudibleImagery:
--- Quote from: zybex on March 22, 2023, 04:37:50 am ---The syntax error is likely because I didn't test it and forgot to escape the parenthesis of "Album Artist (auto)". It should be like this:
FieldQuery(Album Artist /(auto/),[Album Artist (auto)],Catalog #,1,0)
Then you can use it like so for renaming, after putting that into an [Album Catalog] calculated field:
[Album Artist]//trim(replace(replace(replace([Album] /([Album Catalog]/),[Lossy],),[Incomplete],),/(/),))
Or, as a combined expression, no extra field required:
[Album Artist]//trim(replace(replace(replace([Album] /(FieldQuery(Album Artist /(auto/),[Album Artist (auto)],Catalog #,1,0)/),[Lossy],),[Incomplete],),/(/),))
Try it in Zelda.
--- End quote ---
Hey Zybex,
Is Zelda available on Mac? I downloaded it in an attempt to try the combined expression in Zelda but I'm on Mac and so I don't think I can install it.
The combined renaming expression is of extreme interest to me but when I paste it as is I still get an "Expression Error (Syntax Error)" where the [Album Artist] folder is supposed to be represented in the file path. Could this have something to do with the JRiver for Mac bug that we previously discovered related to using slashes (/) to escape parentheses in renaming expressions?
zybex:
No, not available on Mac. The expression is fine, there's no syntax error. It's possible that the forward slashes cause some problem in the Rename&Copy tool in Mac though, it may be a bug. Did you try adding the expression as an Expression column in a Details view? See the screenshot below. If it works as an Expression Column but not on the rename tool, then it's a limitation/bug due to the fwd-slashes, which are also the escape character in an expression. We can try not using the fwd-slash:
--- Code: ---[Album Artist (auto)]//replace(trim(replace(replace([Album],char(91)Lossychar(93),),char(91)Incompletechar(93),)) char(40)FieldQuery(Album Artist char(40)autochar(41),[Album Artist (auto)],Catalog #,1,0)char(41),char(32)char(40)char(41),)
--- End code ---
That's the same as this one, but using no slashes (except the one after [Album Artist (auto)] to create a subfolder):
--- Code: ---[Album Artist (auto)]//replace(trim(replace(replace([Album],/[Lossy/],),/[Incomplete/],)) /(FieldQuery(Album Artist /(auto/),[Album Artist (auto)],Catalog #,1,0)/),/ /(/),)
--- End code ---
You can also try a single slash as the path divider:
--- Code: ---[Album Artist (auto)]/replace(trim(replace(replace([Album],char(91)Lossychar(93),),char(91)Incompletechar(93),)) char(40)FieldQuery(Album Artist char(40)autochar(41),[Album Artist (auto)],Catalog #,1,0)char(41),char(32)char(40)char(41),)
--- End code ---
zybex:
@Matt - unrelated bug: on the Rename/Move/Copy Files screen above, clicking the Original or New columns to sort does not work. The sort arrow shows up but the order does not change.
AudibleImagery:
--- Quote from: zybex on March 24, 2023, 04:09:58 am ---No, not available on Mac. The expression is fine, there's no syntax error. It's possible that the forward slashes cause some problem in the Rename&Copy tool in Mac though, it may be a bug. Did you try adding the expression as an Expression column in a Details view? See the screenshot below. If it works as an Expression Column but not on the rename tool, then it's a limitation/bug due to the fwd-slashes, which are also the escape character in an expression. We can try not using the fwd-slash:
--- Code: ---[Album Artist (auto)]//replace(trim(replace(replace([Album],char(91)Lossychar(93),),char(91)Incompletechar(93),)) char(40)FieldQuery(Album Artist char(40)autochar(41),[Album Artist (auto)],Catalog #,1,0)char(41),char(32)char(40)char(41),)
--- End code ---
That's the same as this one, but using no slashes (except the one after [Album Artist (auto)] to create a subfolder):
--- Code: ---[Album Artist (auto)]//replace(trim(replace(replace([Album],/[Lossy/],),/[Incomplete/],)) /(FieldQuery(Album Artist /(auto/),[Album Artist (auto)],Catalog #,1,0)/),/ /(/),)
--- End code ---
You can also try a single slash as the path divider:
--- Code: ---[Album Artist (auto)]/replace(trim(replace(replace([Album],char(91)Lossychar(93),),char(91)Incompletechar(93),)) char(40)FieldQuery(Album Artist char(40)autochar(41),[Album Artist (auto)],Catalog #,1,0)char(41),char(32)char(40)char(41),)
--- End code ---
--- End quote ---
The first and third expressions didn't return an expression error per se but they are exhibiting some weird behaviors in the Renaming tool. It's returning every catalog number used by an album artist and so this is what the 'Various' album artist value looks like even though there is no catalog number for this release:
and here's a single Hawkwind release with a catalog number but it lists every catalog number for any Hawkwind release in my library:
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version