mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update xmltv config page
This commit is contained in:
parent
8b5889ea3c
commit
b449d37d84
12 changed files with 64 additions and 57 deletions
|
@ -133,7 +133,6 @@
|
|||
CriticRating: $('#txtCriticRating', form).val(),
|
||||
CriticRatingSummary: $('#txtCriticRatingSummary', form).val(),
|
||||
IndexNumber: $('#txtIndexNumber', form).val() || null,
|
||||
DisplaySpecialsWithSeasons: form.querySelector('#chkDisplaySpecialsInline').checked,
|
||||
AbsoluteEpisodeNumber: $('#txtAbsoluteEpisodeNumber', form).val(),
|
||||
DvdEpisodeNumber: $('#txtDvdEpisodeNumber', form).val(),
|
||||
DvdSeasonNumber: $('#txtDvdSeasonNumber', form).val(),
|
||||
|
@ -739,12 +738,6 @@
|
|||
$('#fldParentIndexNumber', context).hide();
|
||||
}
|
||||
|
||||
if (item.Type == "Series") {
|
||||
$('#fldDisplaySpecialsInline', context).show();
|
||||
} else {
|
||||
$('#fldDisplaySpecialsInline', context).hide();
|
||||
}
|
||||
|
||||
if (item.Type == "BoxSet") {
|
||||
$('#fldDisplayOrder', context).show();
|
||||
|
||||
|
@ -812,8 +805,6 @@
|
|||
}
|
||||
populateInternetProviderSettings(context, item, item.LockedFields);
|
||||
|
||||
context.querySelector('#chkDisplaySpecialsInline').checked = item.DisplaySpecialsWithSeasons || false;
|
||||
|
||||
$('#txtPath', context).val(item.Path || '');
|
||||
$('#txtName', context).val(item.Name || "");
|
||||
$('#txtOriginalName', context).val(item.OriginalTitle || "");
|
||||
|
|
|
@ -208,10 +208,6 @@
|
|||
<div id="fldSourceType" style="display: none;" class="fldDisplaySetting">
|
||||
<paper-input id="txtDisplayMediaType" type="text" label="${LabelTreatImageAs}"></paper-input>
|
||||
</div>
|
||||
<div id="fldDisplaySpecialsInline" class="fldDisplaySetting">
|
||||
<br />
|
||||
<paper-checkbox id="chkDisplaySpecialsInline">${LabelDisplaySpecialsWithinSeasons}</paper-checkbox>
|
||||
</div>
|
||||
<div id="fldDisplayOrder" class="fldDisplaySetting">
|
||||
<label for="selectDisplayOrder" class="selectLabel" id="labelDisplayOrder">${LabelDisplayOrder}</label>
|
||||
<select id="selectDisplayOrder" data-mini="true"></select>
|
||||
|
|
|
@ -7,9 +7,16 @@
|
|||
function getListingProvider(config, id) {
|
||||
|
||||
if (config && id) {
|
||||
return config.ListingProviders.filter(function (i) {
|
||||
|
||||
var result = config.ListingProviders.filter(function(i) {
|
||||
return i.Id == id;
|
||||
})[0] || getListingProvider();
|
||||
})[0];
|
||||
|
||||
if (result) {
|
||||
return Promise.resolve(result);
|
||||
}
|
||||
|
||||
return getListingProvider();
|
||||
}
|
||||
|
||||
return ApiClient.getJSON(ApiClient.getUrl('LiveTv/ListingProviders/Default'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue