View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0015355 | MMW 5 | Tagging / organizing (properties / auto-tools) | public | 2019-01-20 14:49 | 2021-05-25 12:53 |
Reporter | peke | Assigned To | |||
Priority | high | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | won't fix | ||
Target Version | 5.0.1 | ||||
Summary | 0015355: Mask: Some $if Masks fail for characters comparison | ||||
Description | Some $if Masks fail for characters comparison eg. $if(<ARTIST:1>=A..Z,<ARTIST:1>,#) always fail. Expected it to work exactly as $if(<ARTIST:1>=1..10,0-9,<ARTIST:1>) for numbers. More Complex example: "$if($Left($Upper($RemovePrefix(<Album Artist>)),1)=1..10,0-9 #,$if($Left($Upper($RemovePrefix(<Album Artist>)),1)=A..Z,$Left($Upper($RemovePrefix(<Album Artist>)),1),$Left($Upper($RemovePrefix(<Album Artist>)),1),0-9 #))\$MovePrefix(<Album Artist>)\<Date> - <Album>\<Track#:3>" | ||||
Additional Information | https://www.mediamonkey.com/forum/viewtopic.php?f=1&t=93684 | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Fixed in build | |||||
|
I don't think we have ever supported range (..) operator, did we? I suppose that this must be handled by nested ifs. |
|
Look that you are right althrum this one works it is too nested like you pointed: Mask like "c:\$if($Left($Upper($RemovePrefix(<Artist>)),1)=1..10,0-9 #,$if($Left($Upper($RemovePrefix(<Artist>)),1)=A,$Left($Upper($RemovePrefix(<Artist>)),1),$Left($Upper($RemovePrefix(<Artist>)),1),0-9 #))\<Auto Number>" We should support (..) for Numeric Values and A..Z for ASCII Latin Charset. |
|
Doesn't seem to be needed. Leaving unresolved, should we ever need to further expand masks, I'd rather consider more generic enhancements, e.g. fully JS backed script functions that's result in endless possibilities. |