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

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

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

Post by ZvezdanD » Tue Dec 18, 2007 6:38 am

mattisse wrote:It would be great, if the text field for the Magic Node code was longer or if it was a text area instead of a single-line field. That would make it a lot easier to edit the code.
Well, you could drag a window side border and make a text field wider. Anyway, I could promise that the next major upgrade will have much better user interface (it is currently in the development).

Thanks for your kind words. :)

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

Post by ZvezdanD » Thu Dec 20, 2007 4:41 am

There is a new revision of the script (1.5.0.2) in the first post with removed some bugs, thanks to doubleij.

doubleij
Posts: 29
Joined: Sat Dec 15, 2007 9:20 am

Post by doubleij » Thu Dec 20, 2007 6:42 am

Hey, I tried the 1.5.0.2 and old bugs resolved! I did find a new bug though :D

The "child of" qualifier does not work with the new MM3 composer node. In other words, if I want to create a magic node that is the child of composer, I cannot.

Hopefully this one will be simple to fix?! :wink:

MM3 monkey
Posts: 445
Joined: Mon Aug 27, 2007 2:34 am

Post by MM3 monkey » Thu Dec 20, 2007 7:27 am

Thank you, ZvezdanD.
MMW 4.1.9.1764|MMA 1.1.3.0482|Android 5.0|Win 8.1 64 bit

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

Post by ZvezdanD » Thu Dec 20, 2007 11:26 am

doubleij wrote:I did find a new bug though :D

The "child of" qualifier does not work with the new MM3 composer node.
Sorry, this is not a bug. MM developers are not updated their API, ISDBTree object particularly. When this happens, I'll update the script.

On the other side, there are some new node positions for Child of qualifier which are introduced with 1.5 version and I didn't mentioned them in What is New: FilesToEdit, MyComputer, NowPlaying, Previews, Radio, VirtualCD and Web. I don't know how much this is useful, but I added them anyway.

doubleij
Posts: 29
Joined: Sat Dec 15, 2007 9:20 am

Post by doubleij » Thu Dec 20, 2007 11:40 am

Sorry ZvezdanD, my mistake. Thanks for your hard work on MagicNodes. I'll look forward to seeing updates in future. For now, it works great...

Inspired
Posts: 60
Joined: Mon May 14, 2007 3:27 am
Location: New Zealand
Contact:

Error

Post by Inspired » Fri Dec 21, 2007 7:28 am

Hi there,
Just updated to V1.5.0.2 and it comes up with the an invalid character error when I start MM3.

Line 1516, Col 16.

Regards,

Jonathan
Got a Sansa s2xx? Sync instructions at http://www.mediamonkey.com/forum/viewtopic.php?t=18535

Want to filter your collection easily? Use MagicNodes
http://www.mediamonkey.com/forum/viewtopic.php?t=3358
Examples here: http://magicnodes.110mb.com/examples.htm

Seen The Secret? Liked it? Thought it sucked?
Check out my eBook at http://www.livingthesecret.tv

Inspired
Posts: 60
Joined: Mon May 14, 2007 3:27 am
Location: New Zealand
Contact:

Further info

Post by Inspired » Fri Dec 21, 2007 7:33 am

Further to the ERROR post I just made...
I see there is nothing at that location.
Just white space. Odd...

Here's the code in that vacinity...

Code: Select all

Sub CreateExternalNodes()
	Dim i, currentMask, parentNode
        
	For i = 1 To MasksInIniFile
    	currentMask = getIniMask(i)
        If Len(currentMask) > 0 Then
        	parentNode = getQualifierValue(currentMask, "child of", "MAGIC", _
                    True)
            If parentNode <> "MAGIC" Then
>>            *	   CreateCustomNode Eval("SDB.MainTree.Node_" & parentNode), 1, _
                        currentMask, i
            End If
        Else
            Exit For
        End If
    Next
End Sub
I put a >> at start of faulting line and a * about where column 16 is position is.

Any ideas why this is occurring?

Jonathan
Got a Sansa s2xx? Sync instructions at http://www.mediamonkey.com/forum/viewtopic.php?t=18535

Want to filter your collection easily? Use MagicNodes
http://www.mediamonkey.com/forum/viewtopic.php?t=3358
Examples here: http://magicnodes.110mb.com/examples.htm

Seen The Secret? Liked it? Thought it sucked?
Check out my eBook at http://www.livingthesecret.tv

Big_Berny
Posts: 1784
Joined: Mon Nov 28, 2005 11:55 am
Location: Switzerland
Contact:

Post by Big_Berny » Fri Dec 21, 2007 7:52 am

Spaces aren't counted as columns - so the problem is afterwards. Anyway I don't know where the problem could be as I don't know how it exactly works.
Image
Scripts in use: Genre Finder / Last.fm DJ / Magic Nodes / AutoRateAccurate / Last.FM Node
Skins in use: ZuneSkin SP / Eclipse SP
AutoRateAccurate 3.0.0 (New) - Rates all your songs in less than 5 seconds!
About me: icoaching - internet | marketing | design

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

Post by ZvezdanD » Fri Dec 21, 2007 11:16 am

Actually, spaces are counted as columns, but Inspired was not counted them correctly - there are exactly 16 blank characters in the front of CreateCustomNode statement. It is better for me if you send screenshot of the error message than the source code of the script itself. Even better, you could send me your MediaMonkey.INI file or its [CustomNodeMasks] section at last. I suppose you have some incorrect line there (the one with Child of quailifier).

fizzjob
Posts: 401
Joined: Fri Mar 30, 2007 12:37 pm

Post by fizzjob » Fri Dec 21, 2007 4:17 pm

I'm having a hard time wrapping my head around the way the database handles dates...I'd like to make a MagicNode that lists just files modified today (or within a given range of days). Obviously, this would need to check the Songs.FileModified field, but I'm not sure how to decode "39437.5853764699" into a date...any ideas?
Image

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

Post by ZvezdanD » Fri Dec 21, 2007 5:23 pm

Code: Select all

Modified today|Filter:Days Since Modified = 0\<Title>

Code: Select all

Modified last week|Filter:Days Since Modified Between 0 And 6\<Title>

Code: Select all

Modified on 2007-12-21|Filter:Date Modified = '2007-12-21'\<Title>
http://www.sqlite.org/cvstrac/wiki?p=Da ... eFunctions

fizzjob
Posts: 401
Joined: Fri Mar 30, 2007 12:37 pm

Post by fizzjob » Fri Dec 21, 2007 5:56 pm

Thanks! That wound up being easier than I had imagined - I had found that link you posted already, but was having some sort of mental block.

Those worked perfectly, and will help keep my music at home and work in sync.
Image

Poison Joe
Posts: 23
Joined: Wed Dec 14, 2005 3:34 pm

Again Field occasion

Post by Poison Joe » Sat Dec 22, 2007 10:37 am

Hi Monkey's,

need help with the field "Occasion". What's wrong with this MagicNode:

Code: Select all

My Favs (just favorites)|shortcut:Ctrl+8|filter:rating>=4 AND occasion != 'Party' AND Sampler != 'yes'|icon:top level\<Album Artist>\<Album|Sort by:max(year)>
I remember some revisions before 1.5.0.2 this works fine. Now it shows me all tracks not tagged to 'Party' but all Tracks which have no tag at all it doesn't show!


Best Regards,
Poison Joe[/code]

P.S.: Field "Sampler" in the code above is my Custom Field 1.

nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

Post by nynaevelan » Sat Dec 22, 2007 11:18 am

Hi Zvezdand:

I updated to the lastest version of MN and I tested my MNs to ensure they are working with the new version. Here are the ones I ran into problems with, can you look at them and tell me why they are not working with the latest version?

1. MN: Played Today|filter:DAYS SINCE LAST PLAYED = 0\<genre>\<artist>

or

Played Today|SQL filter:CAST(julianday('now') - julianday('1899-12-30') - Songs.LastTimePlayed AS integer) = 0\<genre>\<artist

Result: Shows me both tracks that have played today and yesterday

2. MN: Artists sorted by the number of tracks\<Artist|Sort by:Count(Length)|Sort Order:Desc>

Result: Gives me an invalid call or argument at line 1308 Column 4

3. MN: Added Today|SQL filter:CAST(julianday('now') - julianday('1899-12-30') - Songs.DateAdded AS integer) = 0\<genre>

Result: Shows me both tracks that have added today and yesterday

4. MN: Played Yesterday|filter:DAYS SINCE LAST PLAYED < 0\<genre>\<artist>

or

Played Today|SQL filter:CAST(julianday('now') - julianday('1899-12-30') - Songs.LastTimePlayed AS integer) - 1\<genre>\<artist>

Result: Nothing

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files

Post Reply