the asJSON property of cover objects are returning malformed json. To reproduce, try running getCoverList, loadCoverListAsync or any other command that returns a cover or coverlist object and check the asJson property
Code: Select all
app.player.getCurrentTrack().loadCoverListAsync().whenLoaded().then(function(list){console.log(list.asJSON)})
"data":[{"_persistentID":"214__D5UDJU2GPYNA2MHH","objectType":"cover", {"_persistentID":"216_F:\\portable\\mediamonkey5\\Library\\EnConcert.thm_BCAJGBCHCF8EF9SR","objectType":"cover"]
Code: Select all
app.player.getCurrentTrack().loadCoverListAsync().whenLoaded().then(function(list){list.forEach(function(cover){console.log(cover.asJSON)})})
{"_persistentID":"214__D5UDJU2GPYNA2MHH","objectType":"cover"
{"_persistentID":"216_F:\\portable\\mediamonkey5\\Library\\EnConcert.thm_BCAJGBCHCF8EF9SR","objectType":"cover"