aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.WebDashboard/ApiClient.js
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-11-15 11:00:50 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-11-15 11:00:50 -0500
commitcc16fd3af88fe3bfdc68d026e63609e41ffd1628 (patch)
tree7b382ea9f971dee728b73cca9d8b835ee57ebe95 /MediaBrowser.WebDashboard/ApiClient.js
parent016477d88de102cfcc9520b7b41442f71518e01e (diff)
show/hide live tv menu based on installed services
Diffstat (limited to 'MediaBrowser.WebDashboard/ApiClient.js')
-rw-r--r--MediaBrowser.WebDashboard/ApiClient.js33
1 files changed, 33 insertions, 0 deletions
diff --git a/MediaBrowser.WebDashboard/ApiClient.js b/MediaBrowser.WebDashboard/ApiClient.js
index a5621ff4d..d6f82184c 100644
--- a/MediaBrowser.WebDashboard/ApiClient.js
+++ b/MediaBrowser.WebDashboard/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
*/