(I had already written this in the German forum. But after 70 views there with no answer I thought I'll try again here ...

Perhaps in advance of what and why I'm trying: I have a PC in the living room. This has a cable receiver (with DVBViewer Server and DVR) and external USB hard drives with videos, audios, etc. This PC is connected to a multimedia receiver (Onkyo), parallel to an X-Box and a Playstation. The receiver in turn is then connected to an LCD TV (Samsung). So I can watch TV, XB or PS on the TV. The DVB also streams its program to other clients via the network. (In addition, the server also performs other services, such as web server using WAMP, etc.)
Some time ago I played around with MediaMonkey, 4 I think, and also did a little something with the script interface in VBS. Now I've got 2 lifetime licenses and try my hand at the MM5. And I'm just wondering if desperation is an option.

In the VBS at the time I had something like that
Code: Select all
Set obj_ItemList = SDB.SelectedSongList
For i = 0 to obj_ItemList.Count - 1
Set obj_ItemDetails = obj_ItemList.Item (i)
str_user5 = obj_ItemDetails.Custom5
[. . . ]
Code: Select all
obj_ItemDetails.Date = str_Year
Code: Select all
obj_Itemlist.UpdateAll
Now I'm trying something similar with MM5. However, I would now like to build a GUI (preferably in C# or VB). I mainly use MM for my videos. For example, I extracted a bunch of videos from my TV movie subscription DVDs. The file names are structured quite "cleanly" and actually always contain a "{tt ......}" in the file name with the IMDB ID. I then get further details as JSON via TMDB and would then like to write them into the DB of MM. But I'm just not getting on well.
a) When I try to set MediaMonkey as a reference for COM, Visual Studio 19 smears "quietly" away, so without an error message. That happens with VB and with C#. So I don't get this thing addressed as COM from there.
b) Inspired by MediaMonkeyNet (/mmuffins/MediaMonkeyNet on github), with which I had a brief sense of success with the sample console application, I tried to tinker a class for a GUI application. But somehow nothing works.
c) With WebSocketSharp (/sta/websocket-sharp on github) I get connected to MM, but I don't really know what to send there. So far I only get an error with the JSON element 0 or something like that.
d) The mess with JS in the PowerShell is also slowly growing like a tumor. First Visual Studio Code, then NodeJS, then Electron for the GUI. According to dir /s a "hello world" now has 17,377 files in 7,073 directories. That's ill...

e) A three-line VBS via cscript in the shell (here from the german forum) seems to me to be the most promising approach so far. Here is with
Code: Select all
Set SDB = CreateObject ("SongsDB5.SDBApplication")
SLText = SDB.runJSCode ("(function () {return app.db.getTracklist ('SELECT * FROM Songs', -1) .asJSON;}) ()", True)

The way I see it, I can also perform operations on the DB using executeQueryAsync and getQueryResultAsync. But here I need start-up help. Because I don't get the answer directly with .asJSON, as described above.
Who would like to help me a bit here, whether with e) or one of the other points, maybe even a completely different approach?
Michael