diff --git a/MediaBrowser.WebDashboard/ApiClient.js b/MediaBrowser.WebDashboard/ApiClient.js index b68241cdde..0561403047 100644 --- a/MediaBrowser.WebDashboard/ApiClient.js +++ b/MediaBrowser.WebDashboard/ApiClient.js @@ -449,7 +449,7 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) { throw new Error("null name"); } - var url = self.getUrl("Artists/" + name + "/Refresh", { + var url = self.getUrl("Artists/" + self.encodeName(name) + "/Refresh", { forced: force || false @@ -467,7 +467,7 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) { throw new Error("null name"); } - var url = self.getUrl("Genres/" + name + "/Refresh", { + var url = self.getUrl("Genres/" + self.encodeName(name) + "/Refresh", { forced: force || false @@ -485,7 +485,7 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) { throw new Error("null name"); } - var url = self.getUrl("MusicGenres/" + name + "/Refresh", { + var url = self.getUrl("MusicGenres/" + self.encodeName(name) + "/Refresh", { forced: force || false @@ -503,7 +503,7 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) { throw new Error("null name"); } - var url = self.getUrl("Persons/" + name + "/Refresh", { + var url = self.getUrl("Persons/" + self.encodeName(name) + "/Refresh", { forced: force || false @@ -521,7 +521,7 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) { throw new Error("null name"); } - var url = self.getUrl("Studios/" + name + "/Refresh", { + var url = self.getUrl("Studios/" + self.encodeName(name) + "/Refresh", { forced: force || false diff --git a/MediaBrowser.WebDashboard/packages.config b/MediaBrowser.WebDashboard/packages.config index d46a5da70a..ab134ebdaa 100644 --- a/MediaBrowser.WebDashboard/packages.config +++ b/MediaBrowser.WebDashboard/packages.config @@ -1,6 +1,6 @@  - + \ No newline at end of file