2010-03-21, 19:24
debug log
http://pastebin.com/T7RPQZZX
first call success:
second call error:
you're right json.dumps() is not necessary, i must have formatted the string incorrectly.
i haven't played with the File.Download, so it may do it. but i use httpapi's File.Copy. it's very useful for copying to smb:// shares.
edit:
these also give parse errors. do yo9u have an example of Files.GetDirectory, looking thru the source i came up with the above.
http://pastebin.com/T7RPQZZX
first call success:
PHP Code:
postdata = '{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "id": "1"}'
second call error:
PHP Code:
postdata = '{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovieInfo", "movieid": 11}'
you're right json.dumps() is not necessary, i must have formatted the string incorrectly.
i haven't played with the File.Download, so it may do it. but i use httpapi's File.Copy. it's very useful for copying to smb:// shares.
edit:
PHP Code:
postdata = '{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovieInfo", "params": {"movieid": 11}}'
postdata = '{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": {"type": "files", "directory": "c:\\"}, "id": "1"}'
these also give parse errors. do yo9u have an example of Files.GetDirectory, looking thru the source i came up with the above.