2120: Extended tags json

Help improve MediaMonkey 5 by testing the latest pre-release builds, and reporting bugs and feature requests.

Moderator: Gurus

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

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: 1763
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.
How to make a debuglog - step 4b: viewtopic.php?f=30&t=86643
MiPi
Posts: 868
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