2014-01-21, 12:08
Hi there,
I have been developping a remote control for XBMC based on the JSON-rpc interface for a web application.
Everything is going fine until yesterday, I think I found a bug:
Everytime I am trying to retrieve the thumbnail of an album (it works perfectly with movies / TV shows), the websocket connection (that is what I am using to communicate) just close down. No error, nothing.
Again, it is working just fine for movies, but crashes for music. Even if I am retrieving the thumbnail for a single album (either it is populated in XBMC or not), it just crashes.
I am using Frodo 12.3 XBMC for Mac (64 bit version). Anyone has an idea?
These are extracts of my code:
This works perfectly as soon as I remove "thumbnail" in the second list... Otherwise the websocket connexion crashes.
I have the same problem with AudioLibrary.getSongs or any other audio-related method, when retrieving (only) the athumbnail. I have been on this bug for 24H,... I am sure it is coming from XBMC...
And I looked everywhere noone seems to have the same problem...
I have been developping a remote control for XBMC based on the JSON-rpc interface for a web application.
Everything is going fine until yesterday, I think I found a bug:
Everytime I am trying to retrieve the thumbnail of an album (it works perfectly with movies / TV shows), the websocket connection (that is what I am using to communicate) just close down. No error, nothing.
Again, it is working just fine for movies, but crashes for music. Even if I am retrieving the thumbnail for a single album (either it is populated in XBMC or not), it just crashes.
I am using Frodo 12.3 XBMC for Mac (64 bit version). Anyone has an idea?
These are extracts of my code:
This works perfectly as soon as I remove "thumbnail" in the second list... Otherwise the websocket connexion crashes.
I have the same problem with AudioLibrary.getSongs or any other audio-related method, when retrieving (only) the athumbnail. I have been on this bug for 24H,... I am sure it is coming from XBMC...
And I looked everywhere noone seems to have the same problem...
Code:
this.request({
'method': "Player.GetItem",
"params": {
"properties": data.result[0].type=="video" ?
["title", "album", "artist", "season", "episode", "duration", "showtitle", "tvshowid", "thumbnail", "file", "fanart", "streamdetails"]:
["title", "album", "artist", "thumbnail", "duration", "file", "fanart", "streamdetails"],
"playerid":this.playerid
},
'success': function(data){
console.debug('here');
/*... do more things ... */
}
});