More > JRiver Media Center 30 for Mac

Remove Hung Closing Parenthesis From Renamed Folder

<< < (8/14) > >>

lepa:
You could change [hybrid] field editable property from check mark to standard editable. Then you can insert whatever value to that field and display it by changing hard coded Hybrid to field [Hybrid]. So I guess normally you would insert text "Hybrid" or whatever suits you to field [Hybrid] (when album is hybrid type) but in your de la soul you'd set Hybrid field value to be that "Kickstarter/Qobuz"

e.g.


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

AudibleImagery:

--- Quote from: lepa on March 19, 2023, 02:47:16 am ---You could change [hybrid] field editable property from check mark to standard editable. Then you can insert whatever value to that field and display it by changing hard coded Hybrid to field [Hybrid]. So I guess normally you would insert text "Hybrid" or whatever suits you to field [Hybrid] (when album is hybrid type) but in your de la soul you'd set Hybrid field value to be that "Kickstarter/Qobuz"

e.g.


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

--- End quote ---

So is it not possible to automatically (using an expression) list all possible [Catalog #] values for a given album with the [Hybrid] field? The reason why I'm asking is because I have 1000s of "hybrid" albums each with varying catalog numbers and I don't want to have to sift through all of them by hand because it will take weeks.

lepa:
First thought was that these hybrids are anomalies so they could be filled manually.

There is a way but it is getting more complicated and time consuming e.g. by using variables to fill the values. You can search examples where variables are used to calculate e.g. track count of the album and try to modify those to create rule to fill [hybrid]. Create smartlist or view which fills the values or use zybex's ZStats to calculate them in background.

zybex:
In this case [Hybrid] doesn't seem like an adequate name. Perhaps [Album Catalogs]. You can make it a Calculated field with the below expression, but I don't recommend it - since you have thousands of albums it would likely make MC extremely slow.

You can set the value of [Album Catalogs] for all albums in one go with this expression (untested):
FieldQuery(Album Artist (auto),[Album Artist (auto)],Catalog #,1,0)

Or you can use it directly in the Rename expression.

It doesn't seem good to rename the actual files using this though - if you have an album with 10 different Catalog values, then the filename will be veeeery long. But it's your call.

AudibleImagery:

--- Quote from: zybex on March 19, 2023, 05:59:11 pm ---In this case [Hybrid] doesn't seem like an adequate name. Perhaps [Album Catalogs]. You can make it a Calculated field with the below expression, but I don't recommend it - since you have thousands of albums it would likely make MC extremely slow.

You can set the value of [Album Catalogs] for all albums in one go with this expression (untested):
FieldQuery(Album Artist (auto),[Album Artist (auto)],Catalog #,1,0)

Or you can use it directly in the Rename expression.

It doesn't seem good to rename the actual files using this though - if you have an album with 10 different Catalog values, then the filename will be veeeery long. But it's your call.

--- End quote ---

Hey zybex,

Thank you for offering this as a solution. This new Calculated field seems viable because the most catalog numbers I have for a release is like three. How would I incorporate it into my current renaming expression though?:


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

I don't know how I'm supposed to incorporate it. All of my attempts are resulting in an "Expression Error (Syntax Error)" where the [Album Artist] folder is supposed to be represented in the file path:

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version