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

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

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

Postby ZvezdanD » Sun Aug 13, 2017 8:06 am

Code: Select all
<Group|Name:Artists...>\Artists with <ID:1> to <ID:2> years since last released song|Filter:Songs.Artist IN (SELECT Artist FROM Songs WHERE Year > 19000000 GROUP BY Artist HAVING (strftime('%Y%m%d', 'now') - Max(Year)) / 10000 Between <Number|Caption:Minimum number of years|Value:5|MinValue:1|MaxValue:100|ID:1> And <Number|Caption:Maximum number of years|Value:10|MinValue:1|MaxValue:100|ID:2>)|Icon:Top level\<Artist|Statistic:Max(Year)|Unknown:No>\<Year>
Magic Nodes 4.3.2/5.1 RegExp Find & Replace 4.4.8/5.1  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1/5.3.6  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.7/4.0  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.3/2.2.2  Inherit Child Playlists 1.0.2  Add Currently Playing/Selected Track(s) to Playlist 1.1.2
ZvezdanD
 
Posts: 3020
Joined: Thu Jun 08, 2006 7:40 pm

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

Postby MMFrLife » Sun Aug 13, 2017 8:46 am

PERFECTO! :D

Now the user can take customization from there. I like that it shows the most recent date next to the artist.
So very handy.

Thanks
MM user since 2003 (lifetime since 2012) "Trying to imagine life without music gives me a headache"
track properties; dir/fn mask configurations; check out ZvezdanD's scripts
MMW 4.1.18.1842b; fav scripts > RegExp Find & Replace 5.1.0; Magic Nodes 5.1.0; Advanced Duplicate Find & Fix 3.8.2;
Backup 6.0; Clear Now Playing Button 1.2
...always back it up, especially before doing anything major!!!
Win. explorer alt. for power users [free]; great file/folder renamer [used by nasa]
MMFrLife
 
Posts: 2774
Joined: Fri Oct 26, 2012 9:04 pm

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

Postby MMFrLife » Sun Aug 13, 2017 10:28 am

One thing I noticed is that if I have something like "5y min. to 5y max." or "5y min. to 10y max.",
when I add the album node (with year suffix), it doesn't just include albums within that range, it includes
all albums.

What am I doing wrong?
Do you need my mask?
MM user since 2003 (lifetime since 2012) "Trying to imagine life without music gives me a headache"
track properties; dir/fn mask configurations; check out ZvezdanD's scripts
MMW 4.1.18.1842b; fav scripts > RegExp Find & Replace 5.1.0; Magic Nodes 5.1.0; Advanced Duplicate Find & Fix 3.8.2;
Backup 6.0; Clear Now Playing Button 1.2
...always back it up, especially before doing anything major!!!
Win. explorer alt. for power users [free]; great file/folder renamer [used by nasa]
MMFrLife
 
Posts: 2774
Joined: Fri Oct 26, 2012 9:04 pm

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

Postby ZvezdanD » Sun Aug 13, 2017 11:17 am

The name of the node is "Artists with ...", but not "Songs released between x and y by artists with ..." or "Albums released between x and y by artists with ...". Which means that you got what you requested: artists that meet the criteria. If you want to further filter the display of tracks, you should append the additional criteria, like: And (strftime('%Y%m%d', 'now') - Year) / 10000 Between <ID:1> And <ID:2>.
Magic Nodes 4.3.2/5.1 RegExp Find & Replace 4.4.8/5.1  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1/5.3.6  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.7/4.0  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.3/2.2.2  Inherit Child Playlists 1.0.2  Add Currently Playing/Selected Track(s) to Playlist 1.1.2
ZvezdanD
 
Posts: 3020
Joined: Thu Jun 08, 2006 7:40 pm

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

Postby MMFrLife » Sun Aug 13, 2017 12:43 pm

Ok, that works! :D

Well, the original request used terms like "album" and "release" to encompass both album and song. When I saw the term song in the
code, I thought that's just how you did it, but it would allow the album node to fall in line. It appears to in the original one.
But on the next request, "between x andy y", I guess I mistakenly assumed that only the albums associated with the songs in that "specific year range"
would show up under the album node, not the one's before that range. Next time, I'll specifically mention if I want a certain node to show a certain way.

Thanks again!
MM user since 2003 (lifetime since 2012) "Trying to imagine life without music gives me a headache"
track properties; dir/fn mask configurations; check out ZvezdanD's scripts
MMW 4.1.18.1842b; fav scripts > RegExp Find & Replace 5.1.0; Magic Nodes 5.1.0; Advanced Duplicate Find & Fix 3.8.2;
Backup 6.0; Clear Now Playing Button 1.2
...always back it up, especially before doing anything major!!!
Win. explorer alt. for power users [free]; great file/folder renamer [used by nasa]
MMFrLife
 
Posts: 2774
Joined: Fri Oct 26, 2012 9:04 pm

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

Postby MMFrLife » Thu Aug 24, 2017 8:58 am

Is there a way to indicate if something ends or begins with "any" number (without having to write out all numbers).
For ex., something like, <Title> Like '0-9%' (for begins with).
MM user since 2003 (lifetime since 2012) "Trying to imagine life without music gives me a headache"
track properties; dir/fn mask configurations; check out ZvezdanD's scripts
MMW 4.1.18.1842b; fav scripts > RegExp Find & Replace 5.1.0; Magic Nodes 5.1.0; Advanced Duplicate Find & Fix 3.8.2;
Backup 6.0; Clear Now Playing Button 1.2
...always back it up, especially before doing anything major!!!
Win. explorer alt. for power users [free]; great file/folder renamer [used by nasa]
MMFrLife
 
Posts: 2774
Joined: Fri Oct 26, 2012 9:04 pm

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

Postby ZvezdanD » Thu Aug 24, 2017 10:20 am

MMFrLife wrote:Is there a way to indicate if something ends or begins with "any" number (without having to write out all numbers).
For ex., something like, <Title> Like '0-9%' (for begins with).

Begins:
SubStr(<Title>, 1, 1) Between '0' And '9'

Ends:
SubStr(<Title>, -1, 1) Between '0' And '9'
Magic Nodes 4.3.2/5.1 RegExp Find & Replace 4.4.8/5.1  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1/5.3.6  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.7/4.0  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.3/2.2.2  Inherit Child Playlists 1.0.2  Add Currently Playing/Selected Track(s) to Playlist 1.1.2
ZvezdanD
 
Posts: 3020
Joined: Thu Jun 08, 2006 7:40 pm

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

Postby MMFrLife » Thu Aug 24, 2017 7:23 pm

"Between 0 and 9" (which includes 1-9 but not 0)

So, to include '0', I use this

SubStr(<Title>, 1, 1) OR <Title> Like '0%'
and the other, with additional, for ends?

It seems to work, just checking if that's the correct logic. :)

Thanks!
MM user since 2003 (lifetime since 2012) "Trying to imagine life without music gives me a headache"
track properties; dir/fn mask configurations; check out ZvezdanD's scripts
MMW 4.1.18.1842b; fav scripts > RegExp Find & Replace 5.1.0; Magic Nodes 5.1.0; Advanced Duplicate Find & Fix 3.8.2;
Backup 6.0; Clear Now Playing Button 1.2
...always back it up, especially before doing anything major!!!
Win. explorer alt. for power users [free]; great file/folder renamer [used by nasa]
MMFrLife
 
Posts: 2774
Joined: Fri Oct 26, 2012 9:04 pm

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

Postby ZvezdanD » Fri Aug 25, 2017 12:20 am

MMFrLife wrote:"Between 0 and 9" (which includes 1-9 but not 0)

Are you sure about that? We already had conversation about that and I told you why Between operator _includes_ both minimum and maximum values.
Magic Nodes 4.3.2/5.1 RegExp Find & Replace 4.4.8/5.1  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1/5.3.6  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.7/4.0  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.3/2.2.2  Inherit Child Playlists 1.0.2  Add Currently Playing/Selected Track(s) to Playlist 1.1.2
ZvezdanD
 
Posts: 3020
Joined: Thu Jun 08, 2006 7:40 pm

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

Postby MMFrLife » Mon Aug 28, 2017 8:29 am

Yes, you are correct. I immediately remembered the previous example of "between" when I saw your solution.
And I thought it would work like the other one does, despite the wording.

However, when I tried, it showed me all Titles leading off with 1-9 but
not 0. When I added the "OR" statement, it returned 0 as well.


You probably already know how to test if you haven't yet (or don't already have Titles leading off with the full range)
but to stay with the theme of clarity/specifics, I would just

create test folder > copy a file into it > rename it > paste again > copy those 2 > paste again >
copy those 4 > and so on until you get 10 files > rename beg. of filename with the full range of leading number >
scan into library > rename title > Apply filter statement(s) to MN.

Here is my "at beg." mask (without "OR")
<Group|Name:MN Technical (editing 1)>\<Group|Name:Finalize-correction-trap>\Title (#s at beg)|Position:Before|Child of:Now Playing|Filter:SubStr(<Title>, 1, 1)|Show if
empty:No

Mine may just be off on some detail or something weird going on in my environment.
Anyway, it's not a big deal for me. I can just use the additional "OR" statement. 8)
MM user since 2003 (lifetime since 2012) "Trying to imagine life without music gives me a headache"
track properties; dir/fn mask configurations; check out ZvezdanD's scripts
MMW 4.1.18.1842b; fav scripts > RegExp Find & Replace 5.1.0; Magic Nodes 5.1.0; Advanced Duplicate Find & Fix 3.8.2;
Backup 6.0; Clear Now Playing Button 1.2
...always back it up, especially before doing anything major!!!
Win. explorer alt. for power users [free]; great file/folder renamer [used by nasa]
MMFrLife
 
Posts: 2774
Joined: Fri Oct 26, 2012 9:04 pm

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

Postby ZvezdanD » Mon Aug 28, 2017 8:53 am

Yes, I already tried it. I don't need to create test folders/files since I already have bunch of files that begin with numbers, including "0".

The Filter in your mask is incomplete. Here are the working ones:
Code: Select all
<Group|Name:Filter examples>\Titles that begin with a number|Filter:SubStr(<Title>, 1, 1) Between '0' And '9'\<Title|Trim:1>

Code: Select all
<Group|Name:Filter examples>\Titles that end with a number|Filter:SubStr(<Title>, -1, 1) Between '0' And '9'\<Title|Trim:-1>
Magic Nodes 4.3.2/5.1 RegExp Find & Replace 4.4.8/5.1  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1/5.3.6  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.7/4.0  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.3/2.2.2  Inherit Child Playlists 1.0.2  Add Currently Playing/Selected Track(s) to Playlist 1.1.2
ZvezdanD
 
Posts: 3020
Joined: Thu Jun 08, 2006 7:40 pm

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

Postby MMFrLife » Mon Aug 28, 2017 9:10 am

Dang it!
I breifly debated whether to include the "Between..." statement and decided not to because I thought it was just a simple description. :lol:
I should have tried it before posting. :wink:

You added "\<Title>" to the end. Out of curiosity, is that necessary? It seems to work without it.

Thanks
MM user since 2003 (lifetime since 2012) "Trying to imagine life without music gives me a headache"
track properties; dir/fn mask configurations; check out ZvezdanD's scripts
MMW 4.1.18.1842b; fav scripts > RegExp Find & Replace 5.1.0; Magic Nodes 5.1.0; Advanced Duplicate Find & Fix 3.8.2;
Backup 6.0; Clear Now Playing Button 1.2
...always back it up, especially before doing anything major!!!
Win. explorer alt. for power users [free]; great file/folder renamer [used by nasa]
MMFrLife
 
Posts: 2774
Joined: Fri Oct 26, 2012 9:04 pm

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

Postby ZvezdanD » Mon Aug 28, 2017 9:16 am

I have edited masks in the meantime. It is not necessary, but I added <Title|Trim:1> because it displays titles grouped by the starting digit.
Magic Nodes 4.3.2/5.1 RegExp Find & Replace 4.4.8/5.1  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1/5.3.6  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.7/4.0  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.3/2.2.2  Inherit Child Playlists 1.0.2  Add Currently Playing/Selected Track(s) to Playlist 1.1.2
ZvezdanD
 
Posts: 3020
Joined: Thu Jun 08, 2006 7:40 pm

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

Postby MMFrLife » Tue Aug 29, 2017 9:03 am

Is it possible to associate the toolbar selections with a different level of expansion, rather than just top level > 1 deep?
MM user since 2003 (lifetime since 2012) "Trying to imagine life without music gives me a headache"
track properties; dir/fn mask configurations; check out ZvezdanD's scripts
MMW 4.1.18.1842b; fav scripts > RegExp Find & Replace 5.1.0; Magic Nodes 5.1.0; Advanced Duplicate Find & Fix 3.8.2;
Backup 6.0; Clear Now Playing Button 1.2
...always back it up, especially before doing anything major!!!
Win. explorer alt. for power users [free]; great file/folder renamer [used by nasa]
MMFrLife
 
Posts: 2774
Joined: Fri Oct 26, 2012 9:04 pm

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

Postby ZvezdanD » Tue Aug 29, 2017 9:43 am

The toolbar/hotkey selection works only with global Magic nodes. You could have global node on the first level (starting directly from the root), on the second level (as a first child-node of some group/collection), and so on (groups could be nested).
Magic Nodes 4.3.2/5.1 RegExp Find & Replace 4.4.8/5.1  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1/5.3.6  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.7/4.0  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.3/2.2.2  Inherit Child Playlists 1.0.2  Add Currently Playing/Selected Track(s) to Playlist 1.1.2
ZvezdanD
 
Posts: 3020
Joined: Thu Jun 08, 2006 7:40 pm

PreviousNext

Return to Need Help with Addons?

Who is online

Users browsing this forum: No registered users and 19 guests