2120: Extended tags json

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: 2120: Extended tags json

Re: 2120: Extended tags json

by MiPi » Mon Aug 20, 2018 3:41 am

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.

Re: 2120: Extended tags json

by PetrCBR » Sun Aug 19, 2018 2:50 pm

Thanks. Will check and fix that.

2120: Extended tags json

by TIV73 » Sat Aug 18, 2018 10:56 am

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"}]

Top