mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
display similar items on detail page
This commit is contained in:
parent
8ee91b74ab
commit
12e7761111
5 changed files with 70 additions and 8 deletions
11
ApiClient.js
11
ApiClient.js
|
@ -257,6 +257,17 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) {
|
|||
});
|
||||
};
|
||||
|
||||
self.getSimilarItems = function (itemId, options) {
|
||||
|
||||
var url = self.getUrl("Items/" + itemId + "/Similar", options);
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
url: url,
|
||||
dataType: "json"
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Gets all cultures known to the server
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue