@
mikebzh44
with latest version and testfile i become this log file entry:
19:58:53 T:4380 NOTICE: ('[RandomAndLastItems] JSON RESULT ', {u'jsonrpc': u'2.0', u'id': None, u'error': {u'message': u'Parse error.', u'code': -32700}})
19:58:53 T:4380 DEBUG: JSONRPC: Incoming request: {"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "Y:\Kinderfilme\Lazy Town\", "media": "video", "properties": ["year", "runtime", "file", "playcount", "rating", "plot", "fanart", "thumbnail", "trailer"]}, "id": 1}
19:58:53 T:4380 ERROR: JSONRPC: Failed to parse '{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "Y:\Kinderfilme\Lazy Town\", "media": "video", "properties": ["year", "runtime", "file", "playcount", "rating", "plot", "fanart", "thumbnail", "trailer"]}, "id": 1}'
19:58:53 T:4380 NOTICE: [RandomAndLastItems] ## MOVIESET Y:\Kinderfilme\Lazy Town\ COULD NOT BE LOADED ##
19:58:53 T:4380 NOTICE: ('[RandomAndLastItems] JSON RESULT ', {u'jsonrpc': u'2.0', u'id': None, u'error': {u'message': u'Parse error.', u'code': -32700}})
19:58:53 T:4380 INFO: -->Python script returned the following error<--
19:58:53 T:4380 ERROR: Error Type: <type 'exceptions.UnicodeEncodeError'>
19:58:53 T:4380 ERROR: Error Contents: 'ascii' codec can't encode character u'\xdf' in position 119: ordinal not in range(128)
19:58:53 T:4380 ERROR: Traceback (most recent call last):
File "C:\Users\AdminEisi2005\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 476, in <module>
_getMovies()
File "C:\Users\AdminEisi2005\AppData\Roaming\XBMC\addons\script.randomandlastitems\randomandlastitems.py", line 82, in _getMovies
_json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "%s", "media": "video", "properties": ["year", "runtime", "file", "playcount", "rating", "plot", "fanart", "thumbnail", "trailer"]}, "id": 1}' %(_item['file']))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xdf' in position 119: ordinal not in range(128)
19:58:53 T:4380 INFO: -->End of Python script error report<--
Greets
Eisi