aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authortopfs2 <topfs2@svn>2010-05-06 23:14:06 +0000
committertopfs2 <topfs2@svn>2010-05-06 23:14:06 +0000
commit50d10703bf99896caf56783cf7bc31ba524d8922 (patch)
treefff6901ec2566a494d7547c101b5ab8c58eb414e /web
parent17ddc7ef82d56b11ccea4602a5525a4242d99972 (diff)
Moved from type to media in Files.GetFoo
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@29858 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'web')
-rw-r--r--web/poc_jsonrpc/musicfiles.html4
-rw-r--r--web/poc_jsonrpc/videofiles.html4
2 files changed, 4 insertions, 4 deletions
diff --git a/web/poc_jsonrpc/musicfiles.html b/web/poc_jsonrpc/musicfiles.html
index eab6ef95e1..d7019ec242 100644
--- a/web/poc_jsonrpc/musicfiles.html
+++ b/web/poc_jsonrpc/musicfiles.html
@@ -42,9 +42,9 @@ var http_request = new XMLHttpRequest();
http_request.open( "POST", "jsonrpc", false );
if (directory)
- http_request.send('{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": { "type": "music", "directory": "' + Url.decode(directory) + '", "sortmethod": "label", "sortorder": "ascending" }, "id": 1}');
+ http_request.send('{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": { "media": "music", "directory": "' + Url.decode(directory) + '", "sortmethod": "label", "sortorder": "ascending" }, "id": 1}');
else
- http_request.send('{"jsonrpc": "2.0", "method": "Files.GetSources", "params": { "type": "music" }, "id": 1}');
+ http_request.send('{"jsonrpc": "2.0", "method": "Files.GetSources", "params": { "media": "music" }, "id": 1}');
var the_object = JSON.parse(http_request.responseText);
diff --git a/web/poc_jsonrpc/videofiles.html b/web/poc_jsonrpc/videofiles.html
index 6cac0073f7..256c42bd69 100644
--- a/web/poc_jsonrpc/videofiles.html
+++ b/web/poc_jsonrpc/videofiles.html
@@ -42,9 +42,9 @@ var http_request = new XMLHttpRequest();
http_request.open( "POST", "jsonrpc", false );
if (directory)
- http_request.send('{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": { "type": "video", "directory": "' + unescape(directory) + '" }, "id": 1}');
+ http_request.send('{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": { "media": "video", "directory": "' + unescape(directory) + '" }, "id": 1}');
else
- http_request.send('{"jsonrpc": "2.0", "method": "Files.GetSources", "params": { "type": "video" }, "id": 1}');
+ http_request.send('{"jsonrpc": "2.0", "method": "Files.GetSources", "params": { "media": "video" }, "id": 1}');
var the_object = JSON.parse(http_request.responseText);