Posted: Thu Feb 07, 2008 7:15 pm
a better question would be why doesn't it work in MM, it should since it does not use any SQL.
The Music Manager for Serious Collectors
http://mediamonkey.com/forum/
If an expert like you has no idea, I don't have any hopes for one off my favorite scripts.Teknojnky wrote:a better question would be why doesn't it work in MM, it should since it does not use any SQL.
Code: Select all
Function BrowseToNode(FullPathToNode)
' Browses to the specified node and returns True on success.
On Error Resume Next
Dim Node2B
Set Node2B = SDB.MainTree.Node_NowPlaying
Dim i
For i = 1 To UBound(FullPathToNode) - 1
If i > 1 Then
Node2B.Expanded = True
Set Node2B = SDB.MainTree.FirstChildNode(Node2B)
End If
If Not Node2B.Caption = FullPathToNode(i) Then
Do
Set Node2B = SDB.MainTree.NextSiblingNode(Node2B)
If Err <> 0 Then Exit Function
Loop While Node2B.Caption <> FullPathToNode(i)
End If
Next
SDB.MainTree.CurrentNode = Node2B
Node2B.Expanded = isStartupNodeExpanded
BrowseToNode = True
End Function
Code: Select all
Sub BrowseIt(arg)
Dim FavouriteNodes
Set FavouriteNodes = SDB.Objects("FavouriteNodes")
Dim Result
Result = BrowseToNode(FavouriteNodes.Item(arg.Caption))
If Result = False Then
SDB.MessageBox MessageHeader & Error_BrowseToNode , mtError, Array(mbOk)
End If
End Sub
Code: Select all
DebugView:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8.1 : 6269.890s - PID:6036 - 6008 DB lock finished, took 382.
6269.890s - PID:6036 - 6008 DB open SQL:_SELECT NULL FROM Songs WHERE IDMedia=? LIMIT 1
6269.890s - PID:6036 - 6008 DB lock finished, took 382.
6269.890s - PID:6036 - 6008 DB open SQL:_SELECT NULL FROM Songs WHERE IDMedia=? LIMIT 1
6269.890s - PID:6036 - 6008 DB lock finished, took 382.
6269.890s - PID:6036 - 6008 DB prepare SQL:_SELECT ID,TrackCount FROM Folders WHERE IDMedia=? AND IDParentFolder=? AND Folder=?
6269.890s - PID:6036 - 6008 DB query prepare finished, took 536.
6269.890s - PID:6036 - 6008 DB open SQL:_SELECT ID,TrackCount FROM Folders WHERE IDMedia=? AND IDParentFolder=? AND Folder=?
6269.906s - PID:6036 - 6008 DB lock finished, took 38811.
6269.906s - PID:6036 - 6008 DB open SQL:_SELECT NULL FROM Songs WHERE Songs.IDFolder in (SELECT IDChildFolder FROM FoldersHier WHERE IDFolder=0) LIMIT 1
6269.906s - PID:6036 - 6008 DB lock finished, took 1604.
6269.984s - PID:6036 - MMDS:_Written 101376 bytes
6270.562s - PID:6036 - MMDS:_Written 101376 bytes
6270.812s - PID:6036 - Winamp sim - WM_USER message 104
6270.812s - PID:6036 - Winamp sim - WM_USER message 105
6271.109s - PID:6036 - 6008 DB open SQL:_SELECT Count(*) FROM PathProcessing
6271.109s - PID:6036 - 6008 DB lock finished, took 992.
6271.109s - PID:6036 - 6008 DB open SQL:_SELECT ID,TrackCount FROM Folders WHERE IDMedia=? AND IDParentFolder=? AND Folder=?
6271.109s - PID:6036 - 6008 DB lock finished, took 756.
6271.109s - PID:6036 - 6008 DB open SQL:_SELECT Flds1.Folder, Flds1.ID, COUNT(Flds2.TrackCount) FROM Folders Flds1 LEFT OUTER JOIN Folders Flds2 ON Flds2.IDParentFolder=Flds1.ID AND Flds2.IDMedia=80 WHERE Flds1.IDMedia=80 AND Flds1.IDParentFolder=1 AND Flds1.TrackCount>0 GROUP BY Flds1.Folder
6271.125s - PID:6036 - 6008 DB lock finished, took 4867.
6271.140s - PID:6036 - MMDS:_Written 101376 bytes
6271.687s - PID:6036 - MMDS:_Written 101376 bytes
6272.109s - PID:6036 - Node Music starting.
6272.109s - PID:6036 - Node Music going to clear SongList.
6272.140s - PID:6036 - Thread has started 5520
6272.140s - PID:6036 - Thread registered, going to initialize 5520
6272.140s - PID:6036 - Thread initialized 5520
6272.140s - PID:6036 - 5520 DB prepare SQL:_SELECT Count(*) FROM PathProcessing
6272.140s - PID:6036 - 5520 DB query prepare finished, took 425.
6272.140s - PID:6036 - 5520 DB open SQL:_SELECT Count(*) FROM PathProcessing
6272.140s - PID:6036 - 5520 DB lock finished, took 917.
6272.140s - PID:6036 - 5520 DB prepare SQL:_SELECT ID,TrackCount FROM Folders WHERE IDMedia=? AND IDParentFolder=? AND Folder=?
6272.140s - PID:6036 - 5520 DB query prepare finished, took 423.
6272.140s - PID:6036 - 5520 DB open SQL:_SELECT ID,TrackCount FROM Folders WHERE IDMedia=? AND IDParentFolder=? AND Folder=?
6272.140s - PID:6036 - 5520 DB lock finished, took 741.
6272.140s - PID:6036 - 5520 DB open SQL:_SELECT ID,TrackCount FROM Folders WHERE IDMedia=? AND IDParentFolder=? AND Folder=?
6272.140s - PID:6036 - 5520 DB lock finished, took 720.
6272.203s - PID:6036 - 5520 DB open SQL:_SELECT Songs.*
FROM Songs
WHERE Songs.IDFolder=2
6272.203s - PID:6036 - 5520 DB lock finished, took 4381.
6272.218s - PID:6036 - Going to make final callback 5520
6272.218s - PID:6036 - DB:_Deleting prepared query:_SELECT Count(*) FROM PathProcessing
6272.218s - PID:6036 - DB:_Deleting prepared query:_SELECT ID,TrackCount FROM Folders WHERE IDMedia=? AND IDParentFolder=? AND Folder=?
6272.218s - PID:6036 - Thread has finished 5520
6272.265s - PID:6036 - MMDS:_Written 101376 bytes
6272.828s - PID:6036 - MMDS:_Written 101376 bytes
6273.140s - PID:6036 - MMDS:_***Playback pointer crossed buffer end***
6273.406s - PID:6036 - MMDS:_Written 101376 bytes
6273.828s - PID:6036 - Forms:_NormalizeTopMosts:_Level:_0
6273.828s - PID:6036 - Forms:_NormalizeTopMost:_Starting
6273.984s - PID:6036 - MMDS:_Written 101376 bytes
6274.562s - PID:6036 - MMDS:_Written 101376 bytes
6274.922s - PID:6036 - Thread has started 6024
6274.922s - PID:6036 - Thread registered, going to initialize 6024
6274.922s - PID:6036 - Thread initialized 6024
6274.922s - PID:6036 - Going to make final callback 6024
6274.922s - PID:6036 - Thread has finished 6024
6275.125s - PID:6036 - MMDS:_Written 101376 bytes
6275.578s - PID:6036 - Forms:_RestoreTopMost:_Level:_1
6275.578s - PID:6036 - Forms:_RestoreTopMost:_Starting
6275.703s - PID:6036 - MMDS:_Written 101376 bytes
6275.828s - PID:6036 - --------------------------------------------------------
New exception:
Exception code:_3221225477
Exception flags:_2
Number of parameters:_2
(no debug info) Find error:_008F699F
call stack - 0 :_(no debug info) Find error:_008F6CC4
call stack - 1 :_(no debug info) Find error:_00405642
call stack - 2 :_(no debug info) Find error:_7C903787
call stack - 3 :_(no debug info) Find error:_7C90EAF6
call stack - 4 :_(no debug info) Find error:_77135D7D
call stack - 5 :_(no debug info) Find error:_7713638C
call stack - 6 :_(no debug info) Find error:_004C0C7D
call stack - 7 :_(no debug info) Find error:_6F2B3E8B
call stack - 8 :_(no debug info) Find error:_6F2B3DFB
call stack - 9 :_(no debug info) Find error:_6F2B336B
call stack - 10 :_(no debug info) Find error:_6F2B3D5C
call stack - 11 :_(no debug info) Find error:_6F2BF379
call stack - 12 :_(no debug info) Find error:_6F2B63C2
call stack - 13 :_(no debug info) Find error:_6F2B6347
call stack - 14 :_(no debug info) Find error:_6F2B3B43
call stack - 15 :_(no debug info) Find error:_6F2B63C2
call stack - 16 :_(no debug info) Find error:_6F2B6347
call stack - 17 :_(no debug info) Find error:_6F2B6B99
call stack - 18 :_(no debug info) Find error:_6F2C70AD
call stack - 19 :_(no debug info) Find error:_6B985E0A
call stack - 20 :_(no debug info) Find error:_6B98618E
call stack - 21 :_(no debug info) Find error:_005BD9D6
call stack - 22 :_(no debug info) Find error:_0075A54E
call stack - 23 :_(no debug info) Find error:_00796BF5
call stack - 24 :_(no debug info) Find error:_006B7473
call stack - 25 :_(no debug info) Find error:_008DFADB
call stack - 26 :_(no debug info) Find error:_008E2B7C
6275.828s - PID:6036 - --------------------------------------------------------
New exception:
Exception code:_69487755
Exception flags:_100942327
Number of parameters:_1284182645
(no debug info) Find error:_00000001
call stack - 0 :_(no debug info) Find error:_77135D7D
call stack - 1 :_(no debug info) Find error:_7713638C
call stack - 2 :_(no debug info) Find error:_004C0C7D
call stack - 3 :_(no debug info) Find error:_6F2B3E8B
call stack - 4 :_(no debug info) Find error:_6F2B3DFB
call stack - 5 :_(no debug info) Find error:_6F2B336B
call stack - 6 :_(no debug info) Find error:_6F2B3D5C
call stack - 7 :_(no debug info) Find error:_6F2BF379
call stack - 8 :_(no debug info) Find error:_6F2B63C2
call stack - 9 :_(no debug info) Find error:_6F2B6347
call stack - 10 :_(no debug info) Find error:_6F2B3B43
call stack - 11 :_(no debug info) Find error:_6F2B63C2
call stack - 12 :_(no debug info) Find error:_6F2B6347
call stack - 13 :_(no debug info) Find error:_6F2B6B99
call stack - 14 :_(no debug info) Find error:_6F2C70AD
call stack - 15 :_(no debug info) Find error:_6B985E0A
call stack - 16 :_(no debug info) Find error:_6B98618E
call stack - 17 :_(no debug info) Find error:_005BD9D6
call stack - 18 :_(no debug info) Find error:_0075A54E
call stack - 19 :_(no debug info) Find error:_00796BF5
call stack - 20 :_(no debug info) Find error:_006B7473
call stack - 21 :_(no debug info) Find error:_008DFADB
call stack - 22 :_(no debug info) Find error:_008E2B7C
call stack - 23 :_(no debug info) Find error:_006B0D76
call stack - 24 :_(no debug info) Find error:_008E2813
call stack - 25 :_(no debug info) Find error:_0043226A
call stack - 26 :_(no debug info) Find error:_7E418730
6276.547s - PID:6036 - MMDS:_Written 101376 bytes
6276.859s - PID:6036 - MMDS:_Written 101376 bytes
6277.422s - PID:6036 - MMDS:_Written 101376 bytes
6278.015s - PID:6036 - MMDS:_Written 101376 bytes
6278.609s - PID:6036 - MMDS:_Written 101376 bytes
6279.172s - PID:6036 - MMDS:_Written 101376 bytes
6279.750s - PID:6036 - MMDS:_Written 101376 bytes
Yes. I can create complete new nodes. I allways was able to create the fav nodes, even with Steegy's version v1.1.Teknojnky wrote:I'm using 3.03.1137 (from beta forum sticky).
You are adding completely new favorite nodes (from right click a node > add to favourite nodes) yes?
Currently there is a 1 all when it come to working vs non working!Teknojnky wrote:Perhaps its an isolated issue with 1137 or my particular setup (and other installed scripts), we shall see if anyone else have problem or not. Maybe it will not be a problem.
Code: Select all
[FavouriteNodes]
Count=0