More > JRiver Media Center 27 for Windows
Custom fields - 'store 1 value per album' problem
zybex:
You may have (or I may have). The expression above only works for [album]. Are you trying to cleanup something else, like "[album] by [artist]"? If so, a change is needed. Please post your full expression.
haggis999:
--- Quote from: zybex on July 24, 2021, 09:02:22 am ---You may have (or I may have). The expression above only works for [album]. Are you trying to cleanup something else, like "[album] by [artist]"? If so, a change is needed. Please post your full expression.
--- End quote ---
I simply copied and pasted Trim(Regex([Album], /#([^(\[]*)#/,1)) from your earlier post and used that as the calculated definition for the MyRegexTest library field.
BTW, I've just downloaded Zelda for the first time and have noted that this same regex expression correctly generates Greatest Hits from the album named Greatest Hits (2011 digital remaster). The problem appears to centre on what MC does with calculated fields rather than being an issue with your regex.
zybex:
Your [MyRegexTest] can only generate a value of "Greatest Hits (2011 digital remaster) by Queen" if the expression uses both the [Album] and [Artist] fields. Is it defined as "[Album] by [Artist]" ? Or is the "by Queen" part of the album name itself?
If you're using both fields, you need something like "Trim(Regex([Album], /#([^(\[]*)#/,1)) by [Artist]".
If you're still having issues, please post the full expression you have on [MyRegexTest].
haggis999:
I had added a reference to [MyRegexTest] as the first column in the details pane of my normal music view. I misread the text immediately below that heading as the first value for that field when in fact it was the heading generated by MC (in Album by Artist format). The real values for that tag started in the next line and they were fine.
In other words, it's working as expected. Apologies for the confusion.
My brain does not work at full capacity during the very humid weather we are currently 'enjoying' here in the UK, where very few homes have air conditioning. It's either that or I need new glasses! :)
Navigation
[0] Message Index
[*] Previous page
Go to full version