diff options
author | topfs2 <topfs2@svn> | 2010-05-10 15:39:35 +0000 |
---|---|---|
committer | topfs2 <topfs2@svn> | 2010-05-10 15:39:35 +0000 |
commit | 619292e52c9c071c6023bc0a40941731b9e996e8 (patch) | |
tree | 12c01a56459489f4da76f4f519408d367f90acd4 /web | |
parent | a4416efaf6c8d48ebd2af88e30cac21d80c1b3df (diff) |
Made sorting options be an object in jsonrpc. "sort": { "method": "label", "ignorethe": true, "order": "descending" }
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@29987 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'web')
-rw-r--r-- | web/poc_jsonrpc/musicfiles.html | 2 | ||||
-rw-r--r-- | web/poc_jsonrpc/videofiles.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/web/poc_jsonrpc/musicfiles.html b/web/poc_jsonrpc/musicfiles.html index d7019ec242..7dac1d777b 100644 --- a/web/poc_jsonrpc/musicfiles.html +++ b/web/poc_jsonrpc/musicfiles.html @@ -42,7 +42,7 @@ var http_request = new XMLHttpRequest(); http_request.open( "POST", "jsonrpc", false ); if (directory) - http_request.send('{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": { "media": "music", "directory": "' + Url.decode(directory) + '", "sortmethod": "label", "sortorder": "ascending" }, "id": 1}'); + http_request.send('{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": { "media": "music", "directory": "' + unescape(directory) + '", "sort": { "method": "label", "order": "ascending" } }, "id": 1}'); else http_request.send('{"jsonrpc": "2.0", "method": "Files.GetSources", "params": { "media": "music" }, "id": 1}'); diff --git a/web/poc_jsonrpc/videofiles.html b/web/poc_jsonrpc/videofiles.html index 5087d913b8..c7cb30162b 100644 --- a/web/poc_jsonrpc/videofiles.html +++ b/web/poc_jsonrpc/videofiles.html @@ -42,7 +42,7 @@ var http_request = new XMLHttpRequest(); http_request.open( "POST", "jsonrpc", false ); if (directory) - http_request.send('{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": { "media": "video", "directory": "' + unescape(directory) + '", "sortmethod": "label", "sortorder": "ascending" }, "id": 1}'); + http_request.send('{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": { "media": "video", "directory": "' + unescape(directory) + '", "sort": { "method": "label", "order": "ascending" } }, "id": 1}'); else http_request.send('{"jsonrpc": "2.0", "method": "Files.GetSources", "params": { "media": "video" }, "id": 1}'); |