by birwin2 » Fri Jan 30, 2026 2:55 pm
I have an external app that communicates with MediaMonkey via Chrome Dev Tools. I'm having a problem with the object that gets returned not containing all the data it should. In particular I'm requesting the player tracklist, and the object returned frequently doesn't contain the bpm values I need. Looking at what gets returned it appears that the extended tag data and more is missing. Is this a case where a promise is not getting fulfilled? Is there something I'm doing incorrectly in my request?
let mmREQUEST_ID = 1; // Changes with each request
let dataRequest = "app.player.getTracklist().asJSON";
request = { id:mmREQUEST_ID,method:'Runtime.evaluate',params:{expression: dataRequest } };
mmSocket.send(JSON.stringify(request));
I have an external app that communicates with MediaMonkey via Chrome Dev Tools. I'm having a problem with the object that gets returned not containing all the data it should. In particular I'm requesting the player tracklist, and the object returned frequently doesn't contain the bpm values I need. Looking at what gets returned it appears that the extended tag data and more is missing. Is this a case where a promise is not getting fulfilled? Is there something I'm doing incorrectly in my request?
let mmREQUEST_ID = 1; // Changes with each request
let dataRequest = "app.player.getTracklist().asJSON";
request = { id:mmREQUEST_ID,method:'Runtime.evaluate',params:{expression: dataRequest } };
mmSocket.send(JSON.stringify(request));