2011-10-31, 11:20
dwagner Wrote:Is there anyway to get the file dates using Files.GetDirectory. Its something I currently use with the HTTP Api that users really wanted. Would be a shame if I have to remove the feature for Eden.What exactly do you mean by file dates? When the files were created, modified etc? How can you retrieve that information through the HTTP API? AFAIK it's not available through JSON-RPC and as Eden is in feature freeze it won't be available in the Eden release. Please create a feature request ticket for it.
dwagner Wrote:Also I don't seem to be getting anything back for the "lastplayed" field, I've just checked in VideoLibrary.GetMovies and Files.GetDirectory both don't even return an empty field.I'll have to investigate this when I get home this evening. Either it isn't correctly set in the database or it isn't correctly retrieved from the database.
dwagner Wrote:And finally, I reference JSON from the JSONRPC.Introspect, it took me awhile to get a file to play because the Introspect mentions a "path" property but it does not mention a "file" property for Player.Open.It actually does if you follow the reference ("$ref") to "Playlist.Item" which can take a "file" property.
jimk72 Wrote:I figured it out. The amount of data to process was over 30,000char. I was using a string var to store it that could not store that much data. I set it up to store the first part In a separate var. Then combine the 2 to process. Everything is working great now. There does seem to be random violations every so often but I have no error coding inplace if there is a network prob. I just restart the program and everything works.Doesn't sound like a very elegant solution.
jimk72 Wrote:A quick question. When accessing xbmc that has password how do I get the images?You need to set the credentials of the HTTP request to the username and password specified in XBMC (if present).
Currently I use:
Http://192.168.1.110/vfs/special://maste...mbnail/ect...
But I have no user or passwords on xbmc