mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add specialized get seasons method
This commit is contained in:
parent
f5b62182b5
commit
878bad724a
20 changed files with 103 additions and 72 deletions
11
ApiClient.js
11
ApiClient.js
|
@ -575,6 +575,17 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
|||
});
|
||||
};
|
||||
|
||||
self.getSeasons = function (itemId, options) {
|
||||
|
||||
var url = self.getUrl("Shows/" + itemId + "/Seasons", options);
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
url: url,
|
||||
dataType: "json"
|
||||
});
|
||||
};
|
||||
|
||||
self.getSimilarMovies = function (itemId, options) {
|
||||
|
||||
var url = self.getUrl("Movies/" + itemId + "/Similar", options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue