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"}]
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]
JSON.parse(app.player.getCurrentTrack().asJSON)
// Uncaught SyntaxError: Unexpected token t in JSON at position 1045
[/code]
Seems like the reason are two additional double-quotes:
[code]"extendedTags":"[{"title":"ext1","value":"extVal1"},{"title":"ext2","value":"extVal2"}]"[/code]
should be
[code]"extendedTags":[{"title":"ext1","value":"extVal1"},{"title":"ext2","value":"extVal2"}][/code]