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

dypsis
Posts: 1362
Joined: Wed Apr 30, 2008 9:51 pm

Post by dypsis »

ZvezdanD wrote:
dypsis wrote:I am trying to create a node to display tracks since last time played, but I wan to limit it to maybe 20
I am not sure if understand what you want, but you could try:

Code: Select all

Tracks (by Last Time Played)|icon:top level\<Title>\<time since last played|Max tracks:20>
Thanks for your reply ZvezdanD.

Unfortunately, that mask crashes MM.
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Re: Magic Nodes - now playing data

Post by ZvezdanD »

Kiteroa wrote:I'd like a node to display other songs by the same artist as is currently playing.
This is not possible with Magic Nodes. Anyway, you could right-click the currently playing track and choose Find More from Same / Artist.
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Post by ZvezdanD »

dypsis wrote:Unfortunately, that mask crashes MM.
Of course it could freeze MM - with it you would have as many nodes as you have tracks. If you have too many tracks, display of their nodes is time consuming. As I said, I don't understand your requirement and obviously this mask is not what you need. Why you want to have nodes with tracks? Maybe you could try mentioned mask with removed <Title> level.
dypsis
Posts: 1362
Joined: Wed Apr 30, 2008 9:51 pm

Post by dypsis »

ZvezdanD wrote:
dypsis wrote:Unfortunately, that mask crashes MM.
Of course it could freeze MM - with it you would have as many nodes as you have tracks. If you have too many tracks, display of their nodes is time consuming.
I have a mask called Artist (by Last Time Played). See below.

Artist (by Last Time Played)|icon:top level\<artist>\<time since last played>

But instead of listing artists and the time since last played, I would like it to list tracks and the time since last played. But limiting it to maybe the last 20 tracks played.
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Post by ZvezdanD »

dypsis wrote:I would like it to list tracks and the time since last played. But limiting it to maybe the last 20 tracks played.
I am still not sure if I understand this request correctly, but you could try:

Code: Select all

Tracks (by Last Time Played)|icon:top level|Filter:ID IN (SELECT ID FROM Songs WHERE LastTimePlayed <> 0.0 ORDER BY LastTimePlayed DESC LIMIT 20)\<Title|Sort by:Min(Days since last played)>\<time since last played>
There is a problem because Sort by qualifier currently not support Date Last Played, but only Days/Weeks/Months/Years since last played. This needs to be resolved in the next version.
dypsis
Posts: 1362
Joined: Wed Apr 30, 2008 9:51 pm

Post by dypsis »

ZvezdanD wrote:
dypsis wrote:I would like it to list tracks and the time since last played. But limiting it to maybe the last 20 tracks played.
I am still not sure if I understand this request correctly, but you could try:

Code: Select all

Tracks (by Last Time Played)|icon:top level|Filter:ID IN (SELECT ID FROM Songs WHERE LastTimePlayed <> 0.0 ORDER BY LastTimePlayed DESC LIMIT 20)\<Title|Sort by:Min(Days since last played)>\<time since last played>
There is a problem because Sort by qualifier currently not support Date Last Played, but only Days/Weeks/Months/Years since last played. This needs to be resolved in the next version.
That's it ZvezdanD.

Thank you... :)
Guest

Error with locale ?

Post by Guest »

Hello, I just discovered and downloaded last Magic Node... great script.

My first try with a mask found in this thread was :

Code: Select all

Best albums|child of:album\<album|sort by:avg(rating)|sort order:desc|all:yes|min tracks:7>
Unfortunately, I had an error, line 3737 column 24. I had a look to the script and just made a try changing the Locale to "en-us" before error and setting it back :

Code: Select all

If IsNumericLocale(CaptionPrefix) Then
                    	SetLocale "en-us"
                        If CaptionPrefix >= 0 Then
                            SortCondition = Trim(vSortCond(iSortKey - 1))
                            sStatField = getSortField(SortCondition)
                            If StatFormatDict.Exists(sStatField) Then
                                CaptionPrefix = Eval(StatFormatDict.Item( _
                                        sStatField) & "(""" & CaptionPrefix _
                                        & """, True)")
                            ElseIf UCase(Left(SortCondition, 3)) = "AVG" Then
                                CaptionPrefix = FormatNumberInt(CaptionPrefix, _
                                        DecimalsDict.Item(sStatField))
                            End If
                            newNode.Caption = CaptionPrefix & " - " _
                                    & newNode.Caption
                            SetLocale "fr-FR"
And now it works. Of course, this is really not clean, and same problem might be somewhere else... Strange that I'm the first guy with this behaviour. Am I doing something wrong ?

By the way, sorting only works for me with album art display. The detailed wiew is not sorted anymore with this mask. Any clue ?

Thanks a lot and sorry for my poor english.
crabby7
Posts: 6
Joined: Sun May 18, 2008 3:47 pm

Post by crabby7 »

Oups sorry, I wasn't registered :( previous post from me.
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Re: Error with locale ?

Post by ZvezdanD »

Anonymous wrote:and same problem might be somewhere else... Strange that I'm the first guy with this behaviour. Am I doing something wrong ?
Well, this is not strange considering that this bug is a result of the last "fix" introduced just few days ago which is related to very few locales. Your solution is nice, but it is hard-coded to some specific locale, decimal character is not displayed correctly and not resolves a problem with Statistic display which has similar parts of code as Sort by. Anyway, thank you very much for the report.
By the way, sorting only works for me with album art display. The detailed wiew is not sorted anymore with this mask. Any clue ?
I am not sure that I understand. Sorting of tracks in the tracklist window is not related and should not be affected by Magic Nodes - it should stay same after entering some Magic node as before. This script only could sort nodes in the tree window.

There is a new revision of the script (1.7.5.4) with resolved mentioned bug.
crabby7
Posts: 6
Joined: Sun May 18, 2008 3:47 pm

Post by crabby7 »

Ok, new revision 1.7.5.4 works for me. :D

Impressive, this Magic Nodes... I'm using MM since some months and usely not looking for scripts... but this one is really cool - thanks you very much

I'm so happy with the monkey !
Guest

Post by Guest »

I'm getting an error when opening media monkey with the script installed in the auto folder.

Currently running: MM3.0.3.1175

The error is:

Error #1014 - Microsft VBScript compilation error
Expected 'End'

File: "C:\Program Filed\MediaMonkey\Scripts\Auto\MagicNodes.vbs". Line: 1588, Column: 10

Is this a computability issue with the new release of MM?
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Post by ZvezdanD »

Anonymous wrote:I'm getting an error when opening media monkey with the script installed in the auto folder.

File: "C:\Program Filed\MediaMonkey\Scripts\Auto\MagicNodes.vbs". Line: 1588, Column: 10
There shouldn't be any error on the mentioned line/column, especially not during opening MM. You are most probably trying the old official version of the script which don't work with MM3. Please download latest modified version of the script from the first post of this thread.
ZvezdanD
Posts: 3265
Joined: Thu Jun 08, 2006 7:40 pm

Post by ZvezdanD »

There is a new update of this script (1.7.6), now with the installer and 50 predefined masks.
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Post by Bex »

I dont see any predefined masks anywhere! :-?
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
dypsis
Posts: 1362
Joined: Wed Apr 30, 2008 9:51 pm

Post by dypsis »

I have two MagicNodes menus appearing in my Edit menu.

How do I remove one? :o

Edit: Never mind. I found MagicNodes-1.7.5.4.vbs still in the C:\Program Files\MediaMonkey\Scripts\Auto folder.

This should not be a problem next time there is an update, as it is now renamed to MagicNodes.vbs. :)
Post Reply