View Issue Details

IDProjectCategoryView StatusLast Update
0005096MMW v4Help / Docs / Localizationpublic2022-04-29 01:31
ReporterBex Assigned To 
PriorityimmediateSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version3.1 
Fixed in Version3.1 
Summary0005096: Not all masks are documented in the Help file
DescriptionThese are not documented in the help file:
- <Type> (recently renamed from <Extension>)
- $RemovePrefix(string) - Removes starting 'The', i.e. 'The Beatles' -> 'Beatles'
- $MovePrefix(string) - Moves starting 'The' to the end of string, i.e. 'The Beatles' -> 'Beatles, The'
- $Group(string,integer) - Groups the first letter of the first parameter to groups of letters given by the second (optional) paremeter. Works just like <Artist@1>.
- $Replace(string,what,by) - Replaces all occurences of 'what' by 'by' in 'string'.
- $Assign(variable,value) and $Use(variable) - Variables that can be used several times in mask, e.g. '$Assign(V,A)$Use(V)$Use(V)' produces string 'AA'.
- $Use() - See $Assign(variable,value)
- $First(string,count,start from) - There was added parameter 'start from' (optional), which specifies to skip a number of items in multi-value string. E.g. $First(a;b;c,1,1) returns 'b'.
- $Len(string) - returning the length of string, useful for $If() function.
- $Left(s,n) - Returns left n characters
- $Right(s,n) - Returns right n characters
- $Mid(s,i,n) - Returns n characters starting with ith
- $Trim(s) - Cuts spaces from the beginning and end of string
- $Upper(s) - Converts to uppercase
- $Lower(s) - Converts to lowercase
And finally $If(), it exists but its functionality is enhanced so the description needs to be updated.
- $If(<Year><1990,...) - $If() function now accepts also <,<=,>,>= and <> operators. E.g. $If(<Year><1990,80's,$If(<Year><2000,90's,2000's)) returns 80's for year 1984.

One more small issue:
<Custom x> Writes 1 of the 4 Custom fields to a directory or filename (depending on whether it is followed by a '\')
Should be:
<Custom x> Writes 1 of the 5 Custom fields to a directory or filename (depending on whether it is followed by a '\')
Additional Informationhttp://www.mediamonkey.com/forum/viewtopic.php?f=6&t=26602
Tagstodoc-help
Fixed in build1223

Relationships

related to 0002885 closedrusty Things to document in MM 3.0 
related to 0004415 closedjiri Add some more mask functions 
parent of 0004298 closedjiri Add new mask functions 
related to 0005107 closedLudek Feature Request: add <type> or <filetype> to auto-organize masks 
related to 0005130 closedLudek The <Extension> mask evaluates to cda when ripping 

Activities

Bex

2008-12-31 15:18

updater   ~0015922

There were plenty more mask functions which weren't documented. I hope I've added them all. I've also updated them with Jiri's description.

Bex

2009-01-15 00:46

updater   ~0016216

<Extension> has been renamed to <Type> in 1213

Bex

2009-03-22 21:00

updater   ~0017172

Verified in 1228