2074: Cover objects return invalid json [#14362]

Report bugs & feature requests for MediaMonkey 5 and learn about the newest builds.

Moderator: Gurus

2074: Cover objects return invalid json [#14362]

Postby TIV73 » Sun Aug 13, 2017 5:46 am

Hi,
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"


Note how the curly brace for each object is opened but never closed. I tried a few other functions that return an object with the asJSON property, but so far all of them returned correct results; this problem seems to be exclusive to the cover objects.
TIV73
 
Posts: 43
Joined: Sat Nov 12, 2011 1:31 pm

Re: 2074: Cover objects return invalid json

Postby Peke » Sun Aug 27, 2017 6:11 pm

Best regards,
Pavle
MM Core Developer and Admin of free MediaMonkey extensions Hosting
Image
Image
Peke
 
Posts: 10441
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia


Return to Alpha testing, bugs, and feature requests (MM5)

Who is online

Users browsing this forum: No registered users and 3 guests