INTERACT FORUM
More => Old Versions => JRiver Media Center 19 for Windows => Topic started by: InflatableMouse on September 21, 2013, 03:05:14 pm
-
Using this to find duplicates:
[Track #]=1 [Disc #]=<=1 ~dup=[Album],[Album Artist /(auto/)] ~a ~sort=[File Type],[Album Artist (auto)],[Date (year)],[Album],[Track #],[Disc #]
But since I've been adding things like (remaster) or [MFSL] to album titles I'm no longer find duplicates.
I'm not sure how I can do this in that expression? The addition is always between (..) or [..].
Thanks for the help!
-
You'll need to create a custom field that modifies Album, such as Album (base) which is calculated to strip away the variant:
Regex([Album], /#^(.+?)((\s*\[[^]]*\])|(\s*\([^)]*\)))?$#/, 1)
and use [Album (base)] in your duplicates smartlist query.
-
Uhm ...
Did you mean create a new calculated field [Album (base)] and use the expression Regex([Album (base)], /#^(.+?)((\s*\[[^]]*\])|(\s*\([^)]*\)))?$#/, 1)?
Because that works but I can't seem to use that new field in ~dup=[Album (base)],[Album Artist /(auto/)]. When I try that via import expression, MC removes that field and leaves me with [Album Artist /(auto/)] only?
Edit: i think i got it, I need to escape the parens :P.
-
Yes, that's what I meant. Sorry. Corrected.
-
Nope, escaping doesn't work. The field is not selectable.
-
Sometimes after adding a new field, you have to restart MC to get the rest of the UI to see the field.
-
Thanks MrC, its working now.
Had to restart Media Server as well, I tend to forget that's running.