2014-10-09, 14:21
I am unable to get the lyrics field data to return with a call to the JSON-RPC API using either AudioLibrary.GetSongs or AudioLibrary.GetSongDetails.
"lyrics" is an accepted field within List.Item.Base but always seems to return an empty string.
The file does have an embedded lyrics tag. Kid3 can see it, iTunes can see it, the XBMC addon CU LRC Lyrics can see it (and show the content within XBMC).
The closest I can come to proving this from command line is using
I'm a web programmer but my c++ sucks so I'm having trouble tracing where the problem, if there is one, might be. I recently added a PR to the Chorus web interface https://github.com/jez500/chorus/pull/88 and was playing with the idea of implementing lyrics support but can't get past this most basic hurdle.
Has anyone got lyrics returning over json? Or any suggestions on where the issue might be?
"lyrics" is an accepted field within List.Item.Base but always seems to return an empty string.
Code:
curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"AudioLibrary.GetSongDetails","id":"1412339052641","params":[50, ["title","artist","lyrics","file"]]}' http://127.0.0.1:8080/jsonrpc
Code:
{"id":"1412339052641","jsonrpc":"2.0","result":{"songdetails":{"artist":["Beck"],"file":"/Volumes/MEDIA/MusicSelection/Beck/Guero (2005)/01-Beck-E-Pro.mp3","label":"E-Pro","lyrics":"","songid":50,"title":"E-Pro"}}}
The file does have an embedded lyrics tag. Kid3 can see it, iTunes can see it, the XBMC addon CU LRC Lyrics can see it (and show the content within XBMC).
The closest I can come to proving this from command line is using
Code:
id3v2 -l "/Volumes/MEDIA/MusicSelection/Beck/Guero (2005)/01-Beck-E-Pro.mp3"
Code:
id3v2 tag info for /Volumes/MEDIA/MusicSelection/Beck/Guero (2005)/01-Beck-E-Pro.mp3:
TIT2 (Title/songname/content description): E-Pro
TPE1 (Lead performer(s)/Soloist(s)): Beck
TRCK (Track number/Position in set): 1/14
TALB (Album/Movie/Show title): Guero
---abbreviated---
USLT (Unsynchronized lyric/text transcription): ()[]: Test lyrics
SYLT (Synchronized lyric/text): (unimplemented)
I'm a web programmer but my c++ sucks so I'm having trouble tracing where the problem, if there is one, might be. I recently added a PR to the Chorus web interface https://github.com/jez500/chorus/pull/88 and was playing with the idea of implementing lyrics support but can't get past this most basic hurdle.
Has anyone got lyrics returning over json? Or any suggestions on where the issue might be?