View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0019346 | MMW 5 | Tagging / organizing (properties / auto-tools) | public | 2022-09-02 19:47 | 2022-10-20 16:15 |
Reporter | peke | Assigned To | |||
Priority | high | Severity | tweak | Reproducibility | always |
Status | closed | Resolution | reopened | ||
Target Version | 5.0.4 | Fixed in Version | 5.0.4 | ||
Summary | 0019346: Masks: Add ability that n param can be string and not just numeric | ||||
Description | $Left(string,n) -> $left('MediaMonkey',Mo) = 'Media' $Right(string,n) -> $right('MediaMonkey',ia) = 'Monkey' $mid have two cases: a) $Mid(string,i,n) -> $mid('MediaMonkey',Mo,5) = 'Media' b) $Mid(string,i,n) -> $mid('MediaMonkey',M,M) = 'Media' This should allow users to use more complex Auto organize Masks natively eg. $right(<Album>, :) -> Album: "Original Motion Picture Soundtrack: Footloose" = "Footloose" $left(<album>,:)\($Right(<Album>, :) -> Album: "The Best of: ABBA" = "The Best of\ABBA" | ||||
Additional Information | https://www.mediamonkey.com/forum/viewtopic.php?t=102546 | ||||
Tags | No tags attached. | ||||
Fixed in build | 2663 | ||||
|
I would not mix the $right function with something like that. From what I see here: https://www.mediamonkey.com/forum/viewtopic.php?t=102546 user is rather asking for something like $CutBefore(string,what) i.e. $CutBefore(<album>, :) when album is "Original Motion Picture Soundtrack: Footloose" the result would be just "Footloose" And we can add similar function $CutAfter(<album>, :) to get just the prefix "Original Motion Picture Soundtrack" |
|
Added $CutAfter and &CutBefore in 5.0.4.2662 Added todoc to be documented here https://www.mediamonkey.com/wiki/WebHelp:Configuring_Directory_and_File_Formats/5.0 |
|
OK, after testing I changed my mind and realized that you were right with the Left/Right terminology. It will be better for the logic/consistency. Renamed the function to $LeftFrom and $RightFrom i.e. to get "Footloose" from "Original Motion Picture Soundtrack: Footloose" albub field use $Trim($RightFrom(<album>, :)) |
|
Mask as provided fails: $RightFrom(<album>, :) Without space it works: $RightFrom(<album>,:) $Left(<Album>, 5) does work though. |
|
Fixed in 2663 |
|
Verified on 2663 |