Getting tracklist through DevTools

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Getting tracklist through DevTools

Getting tracklist through DevTools

by birwin2 » Sun Jul 20, 2025 11:41 am

Based on a post back in 2018, I am trying to use Chrome Dev Tools to get data from MM. Submitting the following request through a WebSocket to get the currently playing track works fine:

var request = {id:1,method:'Runtime.evaluate',params:{expression:'app.player.getCurrentTrack()'}}

But when I try to get the current tracklist {expression:'app.player.getTracklist()'}, what I get back is the following:

{"id":1,"result":{"result":{"type":"object","className":"Object","description":"Object","objectId":"1608634423004785985.1.1"}}}

Is is possible to get back a tracklist object that I can process using this method?

Top