mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
show/hide live tv menu based on installed services
This commit is contained in:
parent
732cbeaad8
commit
66ced0ebc8
4 changed files with 56 additions and 13 deletions
33
ApiClient.js
33
ApiClient.js
|
@ -378,6 +378,39 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
|||
});
|
||||
};
|
||||
|
||||
self.getLiveTvServices = function (options) {
|
||||
|
||||
var url = self.getUrl("/LiveTv/Services", options || {});
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
url: url,
|
||||
dataType: "json"
|
||||
});
|
||||
};
|
||||
|
||||
self.getLiveTvChannels = function (options) {
|
||||
|
||||
var url = self.getUrl("/LiveTv/Channels", options || {});
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
url: url,
|
||||
dataType: "json"
|
||||
});
|
||||
};
|
||||
|
||||
self.getLiveTvRecordings = function (options) {
|
||||
|
||||
var url = self.getUrl("/LiveTv/Recordings", options || {});
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
url: url,
|
||||
dataType: "json"
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Gets the current server status
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue