mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
rework text subtitles
This commit is contained in:
parent
1447aafd24
commit
8ef09d054d
11 changed files with 300 additions and 146 deletions
25
ApiClient.js
25
ApiClient.js
|
@ -436,13 +436,26 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout, wi
|
|||
|
||||
self.getLiveTvPrograms = function (options) {
|
||||
|
||||
var url = self.getUrl("LiveTv/Programs", options || {});
|
||||
options = options || {};
|
||||
|
||||
if (options.channelIds) {
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
url: url,
|
||||
dataType: "json"
|
||||
});
|
||||
return self.ajax({
|
||||
type: "POST",
|
||||
url: self.getUrl("LiveTv/Programs"),
|
||||
data: JSON.stringify(options),
|
||||
contentType: "application/json",
|
||||
dataType: "json"
|
||||
});
|
||||
|
||||
} else {
|
||||
|
||||
return self.ajax({
|
||||
type: "GET",
|
||||
url: self.getUrl("LiveTv/Programs", options),
|
||||
dataType: "json"
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
self.getLiveTvRecordings = function (options) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue