New mask functions

Beta Testing for Windows Products and plugins

Moderator: Gurus

trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

Also the new parameter for $First doesn't seem to be working in 3.0.3.1140. Instead of the expected...

$First(a;b;c,1,1) returns 'b'.

...I am getting...

$First(a;b;c,1,1) returns 'a;b;c'.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Post by Bex »

I don't think any of the functions in the first post has been implemented yet.
Jiri posted them after 1140 was released.
Advanced Duplicate Find & Fix Find More From Same - Custom Search. | Transfer PlayStat & Copy-Paste Tags/AlbumArt between any tracks.
Tagging Inconsistencies Do you think you have your tags in order? Think again...
Play History & Stats Node Like having your Last-FM account stored locally, but more advanced.
Case & Leading Zero Fixer Works on filenames too!

All My Scripts
MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia

Post by MoDementia »

MoDementia wrote: EDIT: Bah going by the date these arent in 1140 yet I'm guessing :( Hence they probably wont work :)
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

Oh, I didn't realise. Well they'll be in my "UnAutoOrganised" script before they can actually be used then, cos I've just finished implementing them and am now trying to test them! :)
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
spacefish
Posts: 1427
Joined: Mon Jan 14, 2008 7:21 am
Location: Denmark

Re: New mask functions

Post by spacefish »

jiri wrote:- $MovePrefix(string) - Moves starting 'The' to the end of string, i.e. 'The Beatles' -> 'Beatles, The'
OMG. Thank you for this one especially and all the rest. I just tried this in 1147 and it works PERFECTLY! 8)

Cheers,
Paula
Image
MM Gold 3.0.3.1183 : Vista HP SP1 (x86) : Zen Stone (2GB)
Zekton: An original MM3 skin by Eyal.
Scripts in Use: Add/Remove PlayStat | Auto Album DJ | AutoRateAccurate | Backup
Case & Leading Zero Fixer | Classification & Genre Changer | Clean Scripts.ini | Clear
Field | Custom Report | Discogs Auto-Tag Web Search | Forget Crossfade | Invert
Selection/Select None | Last 100... | Lyricator | Lyrics to Instrumental | MonkeyRok
MusicBrainz Tagger | My Custom Nodes | Now Playing Art Node | Play History & Stats
Right Click for Reports | Right Click for Scripts | Right Click for Web | Stop After Current
WebNodes
K1LL3M
Posts: 48
Joined: Sat Aug 18, 2007 7:45 am
Location: Australia

Post by K1LL3M »

Is there a way for these new mask to allow a variation in the tags such as an additional folder, with the disc number, to be added to the mask only if there is multiple discs

E.g.

If album has multiple disks, tag = path\<AlbumArtist>\<year> - <Album>\<Disc#> - <Album>\ Track # & name

Album is single disc - tag = path\<AlbumArtist>\<year> - <Album>\ Track # & name

If this is already available; could someone tell be how please :)
MM4 Gold - Most recent
FLAC Library
Win 7 x64

Monkey spankin' IS a sport
Seeker
Posts: 264
Joined: Tue Jul 10, 2007 3:17 pm

Post by Seeker »

K1LL3M wrote:Is there a way for these new mask to allow a variation in the tags such as an additional folder, with the disc number, to be added to the mask only if there is multiple discs

E.g.

If album has multiple disks, tag = path\<AlbumArtist>\<year> - <Album>\<Disc#> - <Album>\ Track # & name

Album is single disc - tag = path\<AlbumArtist>\<year> - <Album>\ Track # & name

If this is already available; could someone tell be how please :)
Does this work for you?

path\<AlbumArtist>\<year> - <Album>\$IF(<Disc#>,<Disc#> - <Album>$\,)Track # & name

note - I followed your convention - these won't work exactly correctly with mediamonkey rules.
drjboulder
Posts: 1119
Joined: Mon Apr 09, 2007 12:03 am
Location: Boulder, Colorado, USA

Re: New mask functions

Post by drjboulder »

spacefish wrote:
jiri wrote:- $MovePrefix(string) - Moves starting 'The' to the end of string, i.e. 'The Beatles' -> 'Beatles, The'
OMG. Thank you for this one especially and all the rest. I just tried this in 1147 and it works PERFECTLY! 8)

Cheers,
Paula
I am just so stupid with masks!:oops:
Could someone help me out with my simple mask:

Code: Select all

C:\Users\Drock\Music\MP3s\<Artist>\<Year> - <Album>\<Artist> - <Album> - <Track#> - <Title>
I want The Beatles to be Beatles, The. Not for the file but for the Explorer folder. Can not figure out what to do with: $MovePrefix(string)
D Rock
Image
MediaMonkeyGoldv3.0.3.1183
Vista Home Basic|4thGen 20GPod
Zune Small Player Skin w/ Aqua 4 Player Mod
Backup | Last FM Node | Scrobbler DJ | TopTracks | StayInSameStyleDJ
RadioDJ | RadioFreeMonkey | PrettyPictures | MiniLyricsEmbedder
LyricsViewer | Lyricator | LyricsPlugin | VisualizationEmbedder | MonkeyRok
RightClickForWeb | WebSearchPanels | WebNodes | MagicNodes | FavoritesNodes
NowPlayingArtNode |AutoRateAccurate | TaggingInconsistencies
AdvancedDuplicateFind&Fix | CaseModify | PlayHistory&Stats | Etc...
MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia

Re: New mask functions

Post by MoDementia »

I'm Guessing this should work

Code: Select all

C:\Users\Drock\Music\MP3s\$MovePrefix(<Artist>)\<Year> - <Album>\<Artist> - <Album> - <Track#> - <Title>
drjboulder
Posts: 1119
Joined: Mon Apr 09, 2007 12:03 am
Location: Boulder, Colorado, USA

Re: New mask functions

Post by drjboulder »

MoDementia wrote:I'm Guessing this should work

Code: Select all

C:\Users\Drock\Music\MP3s\$MovePrefix(<Artist>)\<Year> - <Album>\<Artist> - <Album> - <Track#> - <Title>
Yeah, thanks Mode, that was it.
:oops: Do not know why I have so much trouble with masks!
D Rock
Image
MediaMonkeyGoldv3.0.3.1183
Vista Home Basic|4thGen 20GPod
Zune Small Player Skin w/ Aqua 4 Player Mod
Backup | Last FM Node | Scrobbler DJ | TopTracks | StayInSameStyleDJ
RadioDJ | RadioFreeMonkey | PrettyPictures | MiniLyricsEmbedder
LyricsViewer | Lyricator | LyricsPlugin | VisualizationEmbedder | MonkeyRok
RightClickForWeb | WebSearchPanels | WebNodes | MagicNodes | FavoritesNodes
NowPlayingArtNode |AutoRateAccurate | TaggingInconsistencies
AdvancedDuplicateFind&Fix | CaseModify | PlayHistory&Stats | Etc...
benzo8
Posts: 47
Joined: Tue Feb 19, 2008 4:31 am

Post by benzo8 »

The $RemovePrefix and $MovePrefix don't appear to handle <Field:x> format:

ie: (where <Album Artist> = "The Fratellis")

$MovePrefix(<Album Artist>) returns "Fratellis, The" as expected
$MovePrefix(<Album Artist:1>) returns "T".

Obviously, the $MovePrefix is being applied after the string reduction, so, in effect, there's no prefix to move. So, how can I finesse this to return "F", as required?

I've tried using $First, as in:

$First($MovePrefix(<Album Artist>),1) returns "Fratellis, The"

Any ideas?
jiri
Posts: 5426
Joined: Tue Aug 14, 2001 7:00 pm
Location: Czech Republic
Contact:

Post by jiri »

$Group() or $Left(,1) functions should help you (for one letter they do actually the same).

Jiri
benzo8
Posts: 47
Joined: Tue Feb 19, 2008 4:31 am

Post by benzo8 »

Thanks - I thought I'd tried $First, but maybe I did it wrong. Anyhow, I've gone back to .1140 for the time being - too many showstopper crashes in .1147 for my liking at the moment. I'll play with the new mask functions again when a more stable build is released.
benzo8
Posts: 47
Joined: Tue Feb 19, 2008 4:31 am

Post by benzo8 »

OK, using Petr's fixed .1147 binary, the following now works as expected:

Code: Select all

d:\albums\$Group($RemovePrefix(<Album Artist>),1)\<Album Artist>\<Album>\$if(<Track#>,<Track#>. ,)<Title> - <Artist>
Thanks for the help guys...
spacefish
Posts: 1427
Joined: Mon Jan 14, 2008 7:21 am
Location: Denmark

Post by spacefish »

I was trying to make a mask that would use the first album artist and move the prefix but it doesn't seem to work properly. I'm probably doing it wrong but perhaps it's not possible?

Album Artist = DJ Vadim; Prime Cuts

using the mask

Code: Select all

E:\Music\$First($MovePrefix(<Album Artist>))\<Album>\
just removes the prefix, it doesn't move it:

Code: Select all

E:\Music\Vadim\Architects of the Great\
It should look like this:

Code: Select all

E:\Music\Vadim, DJ\Architects of the Great\
$MovePrefix works properly otherwise, just not with $First.
Image
MM Gold 3.0.3.1183 : Vista HP SP1 (x86) : Zen Stone (2GB)
Zekton: An original MM3 skin by Eyal.
Scripts in Use: Add/Remove PlayStat | Auto Album DJ | AutoRateAccurate | Backup
Case & Leading Zero Fixer | Classification & Genre Changer | Clean Scripts.ini | Clear
Field | Custom Report | Discogs Auto-Tag Web Search | Forget Crossfade | Invert
Selection/Select None | Last 100... | Lyricator | Lyrics to Instrumental | MonkeyRok
MusicBrainz Tagger | My Custom Nodes | Now Playing Art Node | Play History & Stats
Right Click for Reports | Right Click for Scripts | Right Click for Web | Stop After Current
WebNodes
Post Reply