2120: Extended tags json

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

Moderator: Gurus

TIV73
Posts: 104
Joined: Sat Nov 12, 2011 1:31 pm
Contact:

2120: Extended tags json

Post by TIV73 »

Hi everyone,
I just tried out rev 2120 and noticed that it added support for generic tags - which is an incredible feature, thanks a lot for that!

Unfortunately, the tag list seems to break getCurrentTrack().asJson:

Code: Select all

JSON.parse(app.player.getCurrentTrack().asJSON)
// Uncaught SyntaxError: Unexpected token t in JSON at position 1045
Seems like the reason are two additional double-quotes:

Code: Select all

"extendedTags":"[{"title":"ext1","value":"extVal1"},{"title":"ext2","value":"extVal2"}]"
should be

Code: Select all

"extendedTags":[{"title":"ext1","value":"extVal1"},{"title":"ext2","value":"extVal2"}]
PetrCBR
Posts: 1701
Joined: Tue Mar 07, 2006 5:31 pm
Location: Czech
Contact:

Re: 2120: Extended tags json

Post by PetrCBR »

Thanks. Will check and fix that.
MiPi
Posts: 650
Joined: Tue Aug 18, 2009 2:56 pm
Location: Czech Republic
Contact:

Re: 2120: Extended tags json

Post by MiPi »

Just one note - this generic field support in 2120 is very limited, it will be better in the next build, where it should save the fields also to file tags, where possible.
Post Reply