2011-02-14, 18:32
Jason102 Wrote:I honestly don't know whether other plugins have this issue or not. Here is the code:
Code:json_query = '{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"directory": "%s", "media": "%s", "recursive": "%s", "fields":["duration","tagline","showtitle","album","artist","plot"]}, "id": 1}' % ( self.escapeDirJSON( dir_name ), media_type, recursive )
json_folder_detail = xbmc.executeJSONRPC(json_query)
self.log(json_folder_detail)
The results in the log show that, in Dharma, duration is properly returned as an int value along with the appropriate other fields (depending on the media type, of course). In the repository XBMC, though, the other fields appear but duration is not there.
Open a ticket with full Debug Log and if possible a test script