More > JRiver Media Center 30 for Mac

Remove Hung Closing Parenthesis From Renamed Folder

<< < (6/14) > >>

AudibleImagery:

--- Quote from: zybex on March 15, 2023, 06:52:28 pm ---You're right, you actually need 2 trims to also remove the leftover space in [Album] after the "[Lossy]" is removed:

[Album Artist]//trim(trim(replace(replace([Album, 1],[Lossy],),[Incomplete],)) If(IsEmpty([Catalog #,0]),,char(40)[Catalog #]char(41)))

or moving the space around:
[Album Artist]//trim(replace(replace([Album, 1],[Lossy],),[Incomplete],))If(IsEmpty([Catalog #,0]),,/ char(40)[Catalog #]char(41))

--- End quote ---

Hey zybex,

Thank you for this amendment. I still didn't seem to have any trailing spaces after using the old expression but I appreciate this expression as a failsafe.

AudibleImagery:

--- Quote from: lepa on March 05, 2023, 01:22:05 am ---You could make a new field, say [Hybrid] and check it for this kind of hybrid albums. Then in your rename expression check also that if [hybrid] has a value, then don't use catalog # in the filename but use e.g. text (Hybrid) instead or nothing at all.

--- End quote ---

Hey lepa and zybex,

I'm having trouble deriving all catalogue numbers from a given album for the [Hybrid] field. For the past fews hours I've tested innumerable combinations from this list https://wiki.jriver.com/index.php/List_Manipulation_Functions#ListFind while also referring to this recent post about list manipulation that you both participated in https://yabb.jriver.com/interact/index.php/topic,134242 but I'm not getting anywhere due in large part to my computer and coding illiteracy. What do you suggest? Any help would be greatly appreciated because I'm almost done with this renaming expression.

lepa:
Assuming you have created the Hybrid field: Then you could use e.g. IfElse() to first check that if hybrid exist (display hybrid) and if not then check if there is catalog # (display catalog #) and last as neither exist then do nothing. Last part is not probably needed but it helps to visualize the example. Like this:


--- Code: ---IfElse(
    Not(IsEmpty([Hybrid,0])),
        / char(40)Hybridchar(41),
    Not(IsEmpty([Catalog #,0])),
        / char(40)[Catalog #]char(41),
    1,
)
--- End code ---

The whole thingy would then be:

--- Code: ---[Album Artist]//trim(replace(replace([Album, 1],[Lossy],),[Incomplete],))/
IfElse(
    Not(IsEmpty([Hybrid,0])),
        / char(40)Hybridchar(41),
    Not(IsEmpty([Catalog #,0])),
        / char(40)[Catalog #]char(41),
    1,
)
--- End code ---

zybex:
That screenshot is really foggy and unreadable :P HDR?

The missing link is, I think: you need to create an [Hybrid] field with the "Relational" type set to "Store one value for each Album Artist (auto)". Then go to hybrid albums and set that field to "1" (or "yes", or anything really). You just need to set the value for a single file of each hybrid value and, because it's a relational field, all tracks of the same album will have that same value.

Then Lepa's expression will work - it checks if the [Hybrid] has a value for any given file, and renames the file accordingly.

lepa:
Yep, field can be relational also. If it is relational then I guess you need to be sure that you set it to hybrid only after you have set album name for that new hybrid album. If not relational then you need to mark every track individually.

Image looks little bland but still readable to me

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version