mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added tv service provider selection
This commit is contained in:
parent
518003518b
commit
a0a589b876
17 changed files with 78 additions and 247 deletions
|
@ -13,7 +13,31 @@
|
|||
}
|
||||
|
||||
$('#selectGuideDays', page).val(config.LiveTvOptions.GuideDays || '').selectmenu('refresh');
|
||||
|
||||
|
||||
var serviceOptions = liveTvInfo.Services.map(function (s) {
|
||||
return '<option value="' + s.Name + '">' + s.Name + '</option>';
|
||||
});
|
||||
|
||||
$('#selectActiveService', page).html(serviceOptions).selectmenu('refresh');
|
||||
|
||||
var service = liveTvInfo.Services.filter(function (s) {
|
||||
return s.Name == liveTvInfo.ActiveServiceName;
|
||||
})[0];
|
||||
|
||||
$('#activeServiceName', page).html(liveTvInfo.ActiveServiceName);
|
||||
|
||||
|
||||
var status = service.Status;
|
||||
|
||||
if (status != 'Ok') {
|
||||
|
||||
if (service.StatusMessage) {
|
||||
status += ' (' + service.StatusMessage + ')';
|
||||
}
|
||||
status = '<span style="color:red;">' + status + '</span>';
|
||||
}
|
||||
$('#activeServiceStatus', page).html(status);
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
}
|
||||
|
||||
|
@ -35,10 +59,10 @@
|
|||
|
||||
});
|
||||
|
||||
window.LiveTvSettingsPage = {
|
||||
|
||||
onSubmit: function() {
|
||||
|
||||
window.LiveTvSettingsPage = {
|
||||
|
||||
onSubmit: function () {
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
var form = this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue