show/hide live tv menu based on installed services

This commit is contained in:
Luke Pulverenti
2013-11-15 11:00:50 -05:00
parent 016477d88d
commit cc16fd3af8
2 changed files with 34 additions and 1 deletions

View File

@@ -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
*/