2014-05-03, 13:25
(2014-05-02, 18:28)claymic Wrote:(2014-04-14, 14:13)Montellese Wrote: Nope that's not possible yet.
Thanks Montellese
I am doing a new add-on and i get a problem with the request bellow :
This is just a test to see if i can get a data from another add-on. I use the same method on my interface for ipad, but on the add-on after do this request seems that the Xbmc enter in a infinite loop, or something like that.Code:def getAddonsPath(path,id):
print "get addons video",path,id
directory = "plugin://%s"%id
json_params = '"params": {"properties": ["thumbnail","genre","plot"],"directory" : "%s","media" : "files"}'%directory
print json_params
json_request = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "Files.GetDirectory",%s , "id": 1}'% json_params)
json_request = unicode(json_request, 'utf-8', errors='ignore')
json_response = simplejson.loads(json_request)
if json_response.has_key('result') and json_response['result'] != None and json_response['result'].has_key('files'):
print "json called directory"
for myfiles in json_response['result']['files']:
print "its ok"
The add -on that i want to get the data is a video add-on.
Am i doing something wrong ? or what i want is just not possible ?
Thanks in advance
Please provide a Debug log (wiki) with JSON-RPC logging enabled (in Settings -> System -> Debugging -> Verbose logging).