aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authortopfs2 <topfs2@svn>2010-07-22 19:01:48 +0000
committertopfs2 <topfs2@svn>2010-07-22 19:01:48 +0000
commitfcb1d229f781ea2d33fc7a688d32fa1c6059f1b1 (patch)
tree4ca71c547e78d94d6aaccba99186c425a5480b5d /web
parent47b67de184bf33825d196345e94a3a63e4720ed3 (diff)
Applied #9685 - JSONRPC expects to be accessed from /jsonrpc - Thanks Malard!
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@32060 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'web')
-rw-r--r--web/poc_jsonrpc/albums.html4
-rw-r--r--web/poc_jsonrpc/artists.html6
-rw-r--r--web/poc_jsonrpc/development.html2
-rw-r--r--web/poc_jsonrpc/movies.html4
-rw-r--r--web/poc_jsonrpc/musicfiles.html2
-rw-r--r--web/poc_jsonrpc/nowplaying.html8
-rw-r--r--web/poc_jsonrpc/tvshowepisodes.html4
-rw-r--r--web/poc_jsonrpc/tvshows.html2
-rw-r--r--web/poc_jsonrpc/tvshowseasons.html2
-rw-r--r--web/poc_jsonrpc/videofiles.html2
10 files changed, 18 insertions, 18 deletions
diff --git a/web/poc_jsonrpc/albums.html b/web/poc_jsonrpc/albums.html
index 4c0f7c19e8..09fd8cd7c9 100644
--- a/web/poc_jsonrpc/albums.html
+++ b/web/poc_jsonrpc/albums.html
@@ -6,7 +6,7 @@
<script type="text/javascript">
function CallPlay(album) {
var http_request = new XMLHttpRequest();
- http_request.open( "POST", "jsonrpc", false );
+ http_request.open( "POST", "/jsonrpc", false );
http_request.send('{"jsonrpc": "2.0", "method": "XBMC.Play", "params": { "albumid": ' + album + ' }, "id": 1}');
}
</script>
@@ -34,7 +34,7 @@ function CallPlay(album) {
<script type="text/javascript">
var http_request = new XMLHttpRequest();
-http_request.open( "POST", "jsonrpc", false );
+http_request.open( "POST", "/jsonrpc", false );
http_request.send('{"jsonrpc": "2.0", "method": "AudioLibrary.GetAlbums", "id": 1}');
var the_object = JSON.parse(http_request.responseText);
diff --git a/web/poc_jsonrpc/artists.html b/web/poc_jsonrpc/artists.html
index 1a59e933f4..119e7fc797 100644
--- a/web/poc_jsonrpc/artists.html
+++ b/web/poc_jsonrpc/artists.html
@@ -6,7 +6,7 @@
<script type="text/javascript">
function CallPlay(album) {
var http_request = new XMLHttpRequest();
- http_request.open( "POST", "jsonrpc", false );
+ http_request.open( "POST", "/jsonrpc", false );
http_request.send('{"jsonrpc": "2.0", "method": "XBMC.Play", "params": { "albumid": ' + album + ' }, "id": 1}');
}
@@ -14,7 +14,7 @@ function writeArtist(artist) {
document.write('<h2>' + artist["label"] + '</h2>');
var http_request = new XMLHttpRequest();
- http_request.open( "POST", "jsonrpc", false );
+ http_request.open( "POST", "/jsonrpc", false );
http_request.send('{"jsonrpc": "2.0", "method": "AudioLibrary.GetAlbums", "params": { "artistid": ' + artist["artistid"] + ' }, "id": 1}');
var the_object = JSON.parse(http_request.responseText);
@@ -54,7 +54,7 @@ function writeArtist(artist) {
<script type="text/javascript">
var http_request = new XMLHttpRequest();
-http_request.open( "POST", "jsonrpc", false );
+http_request.open( "POST", "/jsonrpc", false );
http_request.send('{"jsonrpc": "2.0", "method": "AudioLibrary.GetArtists", "id": 1}');
var the_object = JSON.parse(http_request.responseText);
diff --git a/web/poc_jsonrpc/development.html b/web/poc_jsonrpc/development.html
index f86f1665f9..0d8573ae52 100644
--- a/web/poc_jsonrpc/development.html
+++ b/web/poc_jsonrpc/development.html
@@ -17,7 +17,7 @@
<script type="text/javascript">
var http_request = new XMLHttpRequest();
-http_request.open( "POST", "jsonrpc", false );
+http_request.open( "POST", "/jsonrpc", false );
http_request.send('{"jsonrpc": "2.0", "method": "JSONRPC.Introspect", "id": 1}');
var the_object = JSON.parse(http_request.responseText);
diff --git a/web/poc_jsonrpc/movies.html b/web/poc_jsonrpc/movies.html
index f1c0621483..b24b376f8d 100644
--- a/web/poc_jsonrpc/movies.html
+++ b/web/poc_jsonrpc/movies.html
@@ -6,7 +6,7 @@
<script type="text/javascript">
function CallPlay(movieid) {
var http_request = new XMLHttpRequest();
- http_request.open( "POST", "jsonrpc", false );
+ http_request.open( "POST", "/jsonrpc", false );
http_request.send('{ "jsonrpc": "2.0", "method": "XBMC.Play", "params": { "movieid": ' + movieid + ' }, "id": 1 }');
}
</script>
@@ -34,7 +34,7 @@ function CallPlay(movieid) {
<script type="text/javascript">
var http_request = new XMLHttpRequest();
-http_request.open( "POST", "jsonrpc", false );
+http_request.open( "POST", "/jsonrpc", false );
http_request.send('{"jsonrpc": "2.0", "method": "VideoLibrary.GetMovies", "params": { "fields": ["title", "plot"] }, "id": 1}');
var the_object = JSON.parse(http_request.responseText);
diff --git a/web/poc_jsonrpc/musicfiles.html b/web/poc_jsonrpc/musicfiles.html
index c224f7f97f..23d9a5c82f 100644
--- a/web/poc_jsonrpc/musicfiles.html
+++ b/web/poc_jsonrpc/musicfiles.html
@@ -39,7 +39,7 @@ String.prototype.endsWith = function(str)
var directory = gup("directory");
var http_request = new XMLHttpRequest();
-http_request.open( "POST", "jsonrpc", false );
+http_request.open( "POST", "/jsonrpc", false );
if (directory)
http_request.send('{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": { "media": "music", "directory": "' + unescape(directory) + '", "sort": { "method": "label", "order": "ascending" } }, "id": 1}');
diff --git a/web/poc_jsonrpc/nowplaying.html b/web/poc_jsonrpc/nowplaying.html
index d4298147de..c7f6149ac0 100644
--- a/web/poc_jsonrpc/nowplaying.html
+++ b/web/poc_jsonrpc/nowplaying.html
@@ -7,7 +7,7 @@
function CallMethod(method)
{
var http_request = new XMLHttpRequest();
- http_request.open( "POST", "jsonrpc", false );
+ http_request.open( "POST", "/jsonrpc", false );
http_request.send('{"jsonrpc": "2.0", "method": "' + method + '", "params": { "fields": ["title", "plot"] }, "id": 1}');
window.location.reload( false );
}
@@ -15,7 +15,7 @@ function CallMethod(method)
function CallPlay(player, playlistItem)
{
var http_request = new XMLHttpRequest();
- http_request.open( "POST", "jsonrpc", false );
+ http_request.open( "POST", "/jsonrpc", false );
http_request.send('{"jsonrpc": "2.0", "method": "' + player + 'Playlist.Play", "params": ' + playlistItem + ', "id": 1}');
}
@@ -40,7 +40,7 @@ function refresh()
<script type="text/javascript">
setTimeout( "refresh()", 5*1000 );
var http_request = new XMLHttpRequest();
-http_request.open( "POST", "jsonrpc", false );
+http_request.open( "POST", "/jsonrpc", false );
http_request.send('{"jsonrpc": "2.0", "method": "Player.GetActivePlayers", "id": 1}');
var players = JSON.parse(http_request.responseText)["result"];
@@ -50,7 +50,7 @@ if (players["video"] || players["audio"]) {
player = "Audio";
http_request = new XMLHttpRequest();
- http_request.open( "POST", "jsonrpc", false );
+ http_request.open( "POST", "/jsonrpc", false );
http_request.send('{"jsonrpc": "2.0", "method": "' + player + 'Playlist.GetItems", "params": { "fields": ["title", "plot"] }, "id": 1}');
var the_object = JSON.parse(http_request.responseText);
diff --git a/web/poc_jsonrpc/tvshowepisodes.html b/web/poc_jsonrpc/tvshowepisodes.html
index 0f80e87b63..3793a47f22 100644
--- a/web/poc_jsonrpc/tvshowepisodes.html
+++ b/web/poc_jsonrpc/tvshowepisodes.html
@@ -6,7 +6,7 @@
<script type="text/javascript">
function CallPlay(episodeid) {
var http_request = new XMLHttpRequest();
- http_request.open( "POST", "jsonrpc", false );
+ http_request.open( "POST", "/jsonrpc", false );
http_request.send('{"jsonrpc": "2.0", "method": "XBMC.Play", "params": { "episodeid": ' + episodeid + ' }, "id": 1}');
}
</script>
@@ -37,7 +37,7 @@ var tvshowid = gup("tvshowid");
var season = gup("season");
var http_request = new XMLHttpRequest();
-http_request.open( "POST", "jsonrpc", false );
+http_request.open( "POST", "/jsonrpc", false );
http_request.send('{"jsonrpc": "2.0", "method": "VideoLibrary.GetEpisodes", "params": { "tvshowid": ' + tvshowid + ', "season": ' + season + ', "fields": ["plot"] }, "id": 1}');
var the_object = JSON.parse(http_request.responseText);
diff --git a/web/poc_jsonrpc/tvshows.html b/web/poc_jsonrpc/tvshows.html
index 4e2918d661..23adab8f2e 100644
--- a/web/poc_jsonrpc/tvshows.html
+++ b/web/poc_jsonrpc/tvshows.html
@@ -26,7 +26,7 @@
<script type="text/javascript">
var http_request = new XMLHttpRequest();
-http_request.open( "POST", "jsonrpc", false );
+http_request.open( "POST", "/jsonrpc", false );
http_request.send('{"jsonrpc": "2.0", "method": "VideoLibrary.GetTVShows", "id": 1}');
var the_object = JSON.parse(http_request.responseText);
diff --git a/web/poc_jsonrpc/tvshowseasons.html b/web/poc_jsonrpc/tvshowseasons.html
index ec80721ef3..8f1350d4b5 100644
--- a/web/poc_jsonrpc/tvshowseasons.html
+++ b/web/poc_jsonrpc/tvshowseasons.html
@@ -29,7 +29,7 @@
var tvshowid = gup("tvshowid");
var http_request = new XMLHttpRequest();
-http_request.open( "POST", "jsonrpc", false );
+http_request.open( "POST", "/jsonrpc", false );
http_request.send('{"jsonrpc": "2.0", "method": "VideoLibrary.GetSeasons", "params": { "tvshowid": ' + tvshowid + ', "fields": [ "season" ] }, "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 f0ae5c5e98..9b32f1964a 100644
--- a/web/poc_jsonrpc/videofiles.html
+++ b/web/poc_jsonrpc/videofiles.html
@@ -39,7 +39,7 @@ String.prototype.endsWith = function(str)
var directory = gup("directory");
var http_request = new XMLHttpRequest();
-http_request.open( "POST", "jsonrpc", false );
+http_request.open( "POST", "/jsonrpc", false );
if (directory)
http_request.send('{"jsonrpc": "2.0", "method": "Files.GetDirectory", "params": { "media": "video", "directory": "' + unescape(directory) + '", "sort": { "method": "label", "order": "ascending" } }, "id": 1}');