More > JRiver Media Center 30 for Mac
Remove Hung Closing Parenthesis From Renamed Folder
zybex:
Oops, there was a misplaced comma on the second line, here's the fixed code:
--- Code: ---save(FieldQuery(Album Artist - Album,[Album Artist - Album],Catalog #,1,0),_catlist)/
save(if(isempty([_catlist]),,/(replace([_catlist],;,/,/ )/)), _catalog)/
save(trim(replace(replace(replace([Album],[Lossy],),[Incomplete],),//,_)),_album)/
save(FieldQuery(Album Artist - Album,[Album Artist - Album],Date /(Year/),1,0),_dates)/
save(ifcase(listcount([_dates]),6,2,/[listmath([_dates],0)-listmath([_dates],1)/],1,/[[_dates]/],0,,),_years)/
trim([_years] [_album] [_catalog])
--- End code ---
Leave the field settings as default. Slashes here are not a concern.
AudibleImagery:
--- Quote from: zybex on April 06, 2023, 01:12:31 am ---Oops, there was a misplaced comma on the second line, here's the fixed code:
--- Code: ---save(FieldQuery(Album Artist - Album,[Album Artist - Album],Catalog #,1,0),_catlist)/
save(if(isempty([_catlist]),,/(replace([_catlist],;,/,/ )/)), _catalog)/
save(trim(replace(replace(replace([Album],[Lossy],),[Incomplete],),//,_)),_album)/
save(FieldQuery(Album Artist - Album,[Album Artist - Album],Date /(Year/),1,0),_dates)/
save(ifcase(listcount([_dates]),6,2,/[listmath([_dates],0)-listmath([_dates],1)/],1,/[[_dates]/],0,,),_years)/
trim([_years] [_album] [_catalog])
--- End code ---
Leave the field settings as default. Slashes here are not a concern.
--- End quote ---
Hey Zybex,
I tried this new expression and it's not writing a date or a catalog number to the album folder. I tried different combinations and adjusting the expression but I couldn't get it to work.
zybex:
Well, it works for me. I think I can't help any further.
AudibleImagery:
--- Quote from: zybex on April 10, 2023, 01:54:27 pm ---Well, it works for me. I think I can't help any further.
--- End quote ---
Okay, well thank you for your patience and effort.
AudibleImagery:
--- Quote from: zybex on April 10, 2023, 01:54:27 pm ---Well, it works for me. I think I can't help any further.
--- End quote ---
Hey Zybex,
I figured out what is causing one of the older expressions (not the newest one) to not write the catalog number for certain files. If the artist field has an artist in addition to the album artist then it won't write the catalog number to the folder name. Does this tell you anything about what the problem might be with the expression or what a possible fix would be? I'd really appreciate a follow-up on this issue because now I have thousands of album folders that are split into two separate folders.
It's doing this behavior with the following code:
--- Quote ---[Album Artist (auto)]//replace(trim(replace(replace([Album],char(91)Lossychar(93),),char(91)Incompletechar(93),)) char(40)FieldQuery(Artist - Album char(40)yearchar(41),[Artist - Album (year)],Catalog #,1,0)char(41),char(32)char(40)char(41),)
--- End quote ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version