2016-09-06, 20:37
Hello,
Since I moved to windows, I have been struggling with the "Parse error."
If anybody can have a look at my code It would be great.
The first Call gives me back the "file" attribute
Then I use the file attribute to call the Files.PrepareDownload
But here is my return code :
Any Idea ?
I use a POST ajax query (JQuery) to get the list of my movies and get the link to download.
Since I moved to windows, I have been struggling with the "Parse error."
If anybody can have a look at my code It would be great.
The first Call gives me back the "file" attribute
Code:
{ "jsonrpc": "2.0", "method": "VideoLibrary.GetMovieDetails", "params": { "movieid": 3, "properties": [ "genre", "director", "cast", "tagline", "plot", "title", "lastplayed", "runtime", "year", "playcount", "rating", "thumbnail", "file" , "art" , "plotoutline" , "trailer" ] }, "id": 1 }
Then I use the file attribute to call the Files.PrepareDownload
Code:
{"jsonrpc": "2.0", "params": {"path": "D:\Movies\Confessions of a Shopaholic (2009)\Confessions of a Shopaholic (2009).mp4" }, "method": "Files.PrepareDownload", "id": "1" }
But here is my return code :
Code:
{"error":{"code":-32700,"message":"Parse error."},"id":null,"jsonrpc":"2.0"}
Any Idea ?
I use a POST ajax query (JQuery) to get the list of my movies and get the link to download.