Magic Nodes 4.2 w/ 380 masks & real GUI (2011-07-01)[MM2+]

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

kiwichick
Posts: 335
Joined: Tue Jul 21, 2009 6:35 am

Re: Magic Nodes 4.0 w/ 320 masks & real GUI (2010-06-24) [MM

Post by kiwichick »

And also, Is it possible to change main node icons like "Added Statistics" "Random"? Cheers again.
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Re: Magic Nodes 4.0 w/ 320 masks & real GUI (2010-06-24) [MM

Post by ZvezdanD »

kiwichick wrote:Hi there, what code do I need to get "songs added today"? Cheers.

Code: Select all

Songs added today|Filter:<Days since added> = 0
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Re: Magic Nodes 4.0 w/ 320 masks & real GUI (2010-06-24) [MM

Post by ZvezdanD »

kiwichick wrote:And also, Is it possible to change main node icons like "Added Statistics" "Random"? Cheers again.
You could modify the group name for some mask in the Mask text box, e.g. instead of:

Code: Select all

<Group|Name:Random|
you could write:

Code: Select all

<Group|Name:Arbitrary|
However, if you have two or more masks which belongs to the same group then you need to do the same modification to all that masks which could be tedious. My suggestion is to open c:\Documents and Settings\your_name\Local Settings\Application Data\MediaMonkey\MediaMonkey.ini (the path for WinXP) into Notepad and replace all occurrences of <Group|Name:Random| with <Group|Name:Arbitrary| using the Replace command. You need to restart MM if you do that.

EDIT: Wait, did you mean on Icon, i.e. you want to change that small picture for some node? Well, the procedure could be similar to the described, but here is another, simpler one:
1. open the first mask from some group;
2. select group node (displaying e.g. Random) in the Nodes list box;
3. choose some number from the Icon dropdown list;
4. click on the Update button.
In case with the Icon qualifier you don't need to do the same modification to all masks belonging to the same group, but just to the first mask.
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
IWakeUpStrange
Posts: 3
Joined: Mon Sep 22, 2008 11:05 pm

Re: Magic Nodes 4.0 w/ 320 masks & real GUI (2010-06-24) [MM

Post by IWakeUpStrange »

Hello everybody

I'm relatively new to Magic Nodes and could use some help.

I'm wondering if it's possible to use Magic Nodes to create a node that combines the content of two separate fields into one list, where the same entry in both fields would appear only once in the node list. Essentially, it would be like MM's native "Artist & Album Artist" node, only using different fields (in my case, Custom 1 and Custom 2). I'm going to start re-organizing my collection and how I do so would depend on if Magic Nodes can do this. It seems like it would be fairly simple, but after playing with Magic Nodes for a while now, I haven't had any success. The problem seems to me to be that the node (and sub-nodes) can only display information from one field, but I'm not sure if I'm interpreting that correctly or if there may just be a way around it.

Any help would be greatly appreciated!

Thanks,
:) elise
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Re: Magic Nodes 4.0 w/ 320 masks & real GUI (2010-06-24) [MM

Post by ZvezdanD »

IWakeUpStrange wrote:I'm wondering if it's possible to use Magic Nodes to create a node that combines the content of two separate fields into one list, where the same entry in both fields would appear only once in the node list. Essentially, it would be like MM's native "Artist & Album Artist" node, only using different fields (in my case, Custom 1 and Custom 2). I'm going to start re-organizing my collection and how I do so would depend on if Magic Nodes can do this.
Sorry, but this is not possible. However, I recommend you to use just one Custom field in same way as you use some multi-item field like Artist or Genre using the "; " as a separator between those two data fields. In that way you could use Split by and Split mode qualifiers of this add-on, similar to the existing preset "Multi-item Custom 1 field" from "Split examples" group. For example:
First field\<Custom 1|Left of:; >
Second field\<Custom 1|Exclusive Right of:; >
Both fields combined\<Custom 1|Split by:; >

You could even combine two sets of multi-item fields into one field. You could take a look at http://www.mediamonkey.com/forum/viewto ... 81#p262381 for example how Big Isch is using one Custom field to store two sets of multi-item values which want to show in the same node.

If you already have those data entered into two Custom fields, you could use RegExp Find and Replace add-on to combine them into one field, for example with the following settings:
Preset: Append Custom 2 field to the end of Custom 1 field with "; " as separator
Find what: $
Into: Custom 1
Regular expression 1: checked
Replace with: IIf(Len(oSongData.Custom2) > 0, "; ", "") & oSongData.Custom2
VBScript expression: checked
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
IWakeUpStrange
Posts: 3
Joined: Mon Sep 22, 2008 11:05 pm

Re: Magic Nodes 4.0 w/ 320 masks & real GUI (2010-06-24) [MM

Post by IWakeUpStrange »

Yeah, using the split feature was my back-up plan.

Thanks for your help!!

Cheers,
:) elise
kiwichick
Posts: 335
Joined: Tue Jul 21, 2009 6:35 am

Re: Magic Nodes 4.0 w/ 320 masks & real GUI (2010-06-24) [MM

Post by kiwichick »

Thanks ZvezdanD, That's perfect for the code and the icon (yes it was "change that small picture for some node" I was after). You rock!!!!
declan
Posts: 85
Joined: Wed Sep 20, 2006 3:55 pm

Re: Magic Nodes 4.0 w/ 320 masks & real GUI (2010-06-24) [MM

Post by declan »

Is it possible to list composer by surname.

I've tried using right of space, but this means, for example Mark E. Smith is listed under "E. Smith" and not "Smith". So is it possible to have a node that lists just by the last word.
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Re: Magic Nodes 4.0 w/ 320 masks & real GUI (2010-06-24) [MM

Post by ZvezdanD »

declan wrote:is it possible to have a node that lists just by the last word.
Of course:

Code: Select all

Last word\<Composer|Split by: |Split Mode:String Part|Split part:-1>
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
declan
Posts: 85
Joined: Wed Sep 20, 2006 3:55 pm

Re: Magic Nodes 4.0 w/ 320 masks & real GUI (2010-06-24) [MM

Post by declan »

Thank you
markeh
Posts: 269
Joined: Fri May 25, 2007 1:30 am

finding tracks not recently played

Post by markeh »

I'm trying to find all tracks that haven't been played, for say 60 or more days.

MM has a field called "last played", but I'm not sure how to relate this to a MagicNode mask. There are a number of fields -day last played, month last played, and I'm not sure which to use.

Using <Days since last played> > 60 seems to find newer things.

Also, some tracks have never been played (yet)

Thnx
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Re: finding tracks not recently played

Post by ZvezdanD »

markeh wrote:Using <Days since last played> > 60 seems to find newer things.
That is the exact filter for you. It cannot find newer things, since it filters out all tracks that you have played in last 60 days. You could use <Months since last played> > 2 instead, but it should return similar result (depending of the number of days in a month). Maybe you have some kind of problem with the Last played date field in database. What you see in that column of the main tracklist for those tracks which you state that never been played or newly played? Could you post the exact mask you are using?
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
markeh
Posts: 269
Joined: Fri May 25, 2007 1:30 am

Re: finding tracks not recently played

Post by markeh »

ZvezdanD wrote:
markeh wrote:Using <Days since last played> > 60 seems to find newer things.
That is the exact filter for you. It cannot find newer things, since it filters out all tracks that you have played in last 60 days. You could use <Months since last played> > 2 instead, but it should return similar result (depending of the number of days in a month). Maybe you have some kind of problem with the Last played date field in database. What you see in that column of the main tracklist for those tracks which you state that never been played or newly played? Could you post the exact mask you are using?

Here is the mask:
Classical, not recentlly played>60|Child of:Playlists|Filter:<Class> = 'c' AND <Days since last played> > 60\<Artist>\<Album>
Looking at the results, I think I see the problem. The tracks selected are correct, but many of tracks have never been played and don't appear in the results. I didn't catch this at first.

The last played field for these tracks (which I assume is how days since last played is calculated) shows no value - it's blank. These tracks aren't shown in the result, not what I want. Apparently this doesn't pass the test.

A track just played for the first time as a test shows 11/29/2010 9:21:29 AM

Class is the MM Custom_1 field, and describes classical music.


.
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Re: finding tracks not recently played

Post by ZvezdanD »

markeh wrote:Looking at the results, I think I see the problem. The tracks selected are correct, but many of tracks have never been played and don't appear in the results.
Very interesting observation, I will rename masks in the next version of the add-on appropriately. You could combine your filter with the filter of the Titles that never played mask to get what you want, e.g.:

Code: Select all

Classical, not recentlly played>60 or never played|Child of:Playlists|Filter:<Class> = 'c' AND (<Days since last played> > 60 OR <Played> = 0)\<Artist>\<Album>
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
markeh
Posts: 269
Joined: Fri May 25, 2007 1:30 am

Re: finding tracks not recently played

Post by markeh »

ZvezdanD wrote:
markeh wrote:Looking at the results, I think I see the problem. The tracks selected are correct, but many of tracks have never been played and don't appear in the results.
Very interesting observation, I will rename masks in the next version of the add-on appropriately. You could combine your filter with the filter of the Titles that never played mask to get what you want, e.g.:

Code: Select all

Classical, not recentlly played>60 or never played|Child of:Playlists|Filter:<Class> = 'c' AND (<Days since last played> > 60 OR <Played> = 0)\<Artist>\<Album>

That works - thank you!

.
Post Reply