Overwriting Node SortGroup and maybe SortCriteria

Beta Testing for Windows Products and plugins

Moderator: Gurus

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

Overwriting Node SortGroup and maybe SortCriteria

Post by MoDementia »

Load Playlist into Now Playing
Create a new node (don't set SortGroup or SortCriteria) with a subset of Now Playing tracks.
Switch to Album Art with Details
Node now has a grouping Alpha on album or album Artist (can't remember)

Somehow the new node gets a grouping (and or SortCriteria) from the subset of tracks.

[Solution]
Set SortGroup and SortCriteria to 0 on new node
Only works until you change the now playing list :evil:

[EDITED]
If the now playing is cleared and repopulated the grouping appears on the custom node and only an MM restart will correct it

This is ridiculous EVERY change to the now playing list adds grouping back to the custom node.

[EDITED]
I can't always reproduce it except with the clear now playing list.
MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia

Post by MoDementia »

Not as complicated as initially thought.

Just clicking the Now Playing Node causes the custom node (album art with details view) to be grouped by Album Artist/Artist even though it was created without sorting or grouping.

There seems to be no script solution for restoring the original sorting/grouping once changed.
Only a MM restart restores the sorting/grouping.
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Post by Bex »

What happens if you click on the Library node before you click on your node?

In scripts it can be done like this:
SDB.MainTree.CurrentNode.NodeType = 12
SDB.MainTracksWindow.Refresh
SDB.MainTree.CurrentNode.NodeType = 255

That's what I use to reset any added sortorder to my nodes. It works if you have sortorder 0.
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 »

Yes Library node does the same thing i.e. adds the grouping /sigh

There is no information on NodeTypes on the wiki

any ideas on what a 12 or 255 is? and why they work ?
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Post by Bex »

Steegy has made an excellent site with nodetype values:
http://www.mediamonkey.com/wiki/index.p ... _structure

12 = Library node
255 = Custom made node

Did you try to refresh after you clicked on the Library node?
Does your Custom made node have sortgroup 0?
Does it work if you have normal view in your custom node?
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 »

Just found it will check it out
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Post by Bex »

You can also try my Debug Helper script which give you these kinds of info on any node.
http://www.mediamonkey.com/forum/viewtopic.php?t=25935
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 »

So far all I can confirm is that everytime I click the node it has

NodeType = 255
SortCriteria = 0
SortGroup = 0

But eventually it will have the [A], , [C] etc grouping images/icons top left of the album art.
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Post by Bex »

Did you ever try this:
Did you try to refresh after you clicked on the Library node?
Does it work if you have normal view in your custom node?
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 »

This doesn't work
Bex wrote:What happens if you click on the Library node before you click on your node?

In scripts it can be done like this:
SDB.MainTree.CurrentNode.NodeType = 12
SDB.MainTracksWindow.Refresh
SDB.MainTree.CurrentNode.NodeType = 255

That's what I use to reset any added sortorder to my nodes. It works if you have sortorder 0.
This didn't work either
Bex wrote:Did you ever try this:
Did you try to refresh after you clicked on the Library node?
Does it work if you have normal view in your custom node?
If I leave the custom node in normal view it never gets grouped/sorted.

Switching from Album Artist to Custom Node NEVER changes the grouping/sort order.

Before clicking Now Playing/Library Node
Image
After clicking Now Playing/Library Node
Image
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Post by Bex »

Switching from Album Artist to Custom Node NEVER changes the grouping/sort order.
Perhaps this works then:
SDB.MainTree.CurrentNode.NodeType = 22 '<-- AlbumArtist Node
SDB.MainTracksWindow.Refresh
SDB.MainTree.CurrentNode.NodeType = 255

You can also try to set your custom node to NodeType = 22. But that can give other strange behavior...
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 »

Hahaha that not only adds the grouping immediately but crashes MM when I switch back to Album Artist Node :(
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Post by Bex »

I'll take a look at the script and see if I can find a solution.
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
PetrCBR
Posts: 1722
Joined: Tue Mar 07, 2006 5:31 pm
Location: Czech
Contact:

Post by PetrCBR »

MoDementia,

you're trying with latest release, right (build 1173) ? Can you send me that script (petr < att > mm.com) ?
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Post by Bex »

I haven't yet checked anything but I'm sure you will do a better job than me Petr! :D
So I'm stepping out of this!
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
Post Reply