2012-02-19, 18:46
Hi Montellese,
I've added support to my app for playing internet streams, and I noted that the JSON API ("Player.GetItem) does not retrieve the title or the genre. On the HTTP API (command=GetCurrentlyPlaying) however these are correctly retrieved.
Here is a response from JSON:
{
"id": 2097173,
"jsonrpc": "2.0",
"result": {
"item": {
"album": "",
"albumartist": "",
"albumid": -1,
"artist": "",
"artistid": -1,
"comment": "",
"duration": -1,
"fanart": "special://masterprofile/Thumbnails/Music/Fanart/ffffffff.tbn",
"file": "http://50.117.115.211:80",
"genre": "",
"label": "(#1 - 1415/5000) idobi Radio: New. Music. Unfiltered. idobi.com",
"lyrics": "",
"playcount": 0,
"rating": 48,
"thumbnail": "",
"title": "",
"track": 0,
"type": "song",
"year": 0
}
}
}
and here is the same media info retrieved with HTTP API command GetCurrentlyPlaying:
Filename:http://50.117.115.211:80/
PlayStatuslaying
SongNo:0
Type:Audio
Title:Transit - The Answer Comes In Time
Genre:Alternative, Pop, Rock
URL:
Lyrics:
Samplerate:44
ThumbefaultAlbumCover.png
Time:01:23
Duration:
Percentage:-2147483648
File size:-1
Changed:False
I've added support to my app for playing internet streams, and I noted that the JSON API ("Player.GetItem) does not retrieve the title or the genre. On the HTTP API (command=GetCurrentlyPlaying) however these are correctly retrieved.
Here is a response from JSON:
{
"id": 2097173,
"jsonrpc": "2.0",
"result": {
"item": {
"album": "",
"albumartist": "",
"albumid": -1,
"artist": "",
"artistid": -1,
"comment": "",
"duration": -1,
"fanart": "special://masterprofile/Thumbnails/Music/Fanart/ffffffff.tbn",
"file": "http://50.117.115.211:80",
"genre": "",
"label": "(#1 - 1415/5000) idobi Radio: New. Music. Unfiltered. idobi.com",
"lyrics": "",
"playcount": 0,
"rating": 48,
"thumbnail": "",
"title": "",
"track": 0,
"type": "song",
"year": 0
}
}
}
and here is the same media info retrieved with HTTP API command GetCurrentlyPlaying:
Filename:http://50.117.115.211:80/
PlayStatuslaying
SongNo:0
Type:Audio
Title:Transit - The Answer Comes In Time
Genre:Alternative, Pop, Rock
URL:
Lyrics:
Samplerate:44
ThumbefaultAlbumCover.png
Time:01:23
Duration:
Percentage:-2147483648
File size:-1
Changed:False