1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update recording creation process

This commit is contained in:
Luke Pulverenti 2016-02-12 13:12:59 -05:00
parent 6aca855749
commit 31bb32ee03
7 changed files with 54 additions and 31 deletions

View file

@ -49,6 +49,13 @@
var form = this;
ApiClient.getNamedConfiguration("livetv").then(function (config) {
config.EnableRecordingEncoding = $('#chkConvertRecordings', form).checked();
ApiClient.updateNamedConfiguration("livetv", config).then(Dashboard.processServerConfigurationUpdateResult);
});
ApiClient.getNewLiveTvTimerDefaults({ programId: currentProgramId }).then(function (item) {
item.PrePaddingSeconds = $('#txtPrePaddingMinutes', form).val() * 60;
@ -127,12 +134,6 @@
context.querySelector('.supporterContainer').classList.remove('hide');
if (AppInfo.enableSupporterMembership) {
context.querySelector('.btnSupporter').classList.remove('hide');
} else {
context.querySelector('.btnSupporter').classList.add('hide');
}
if (regInfo.TrialVersion) {
context.querySelector('.supporterTrial').classList.remove('hide');
} else {
@ -216,6 +217,20 @@
});
$('form', context).off('submit', onSubmit).on('submit', onSubmit);
var supporterButtons = context.querySelectorAll('.btnSupporter');
for (var i = 0, length = supporterButtons.length; i < length; i++) {
if (AppInfo.enableSupporterMembership) {
supporterButtons[i].classList.remove('hide');
} else {
supporterButtons[i].classList.add('hide');
}
}
ApiClient.getNamedConfiguration("livetv").then(function (config) {
$('#chkConvertRecordings', context).checked(config.EnableRecordingEncoding);
});
}
function selectDays(page, days) {

View file

@ -45,7 +45,13 @@
</div>
</div>
</div>
<br />
<div>
<paper-checkbox id="chkConvertRecordings">${OptionConvertRecordingsToStreamingFormat}</paper-checkbox>
<div class="fieldDescription paperCheckboxFieldDescription">${OptionConvertRecordingsToStreamingFormatHelp}</div>
<div class="fieldDescription paperCheckboxFieldDescription hide btnSupporter"><a href="http://emby.media/premiere" target="_blank">${ButtonLearnMore}</a></div>
</div>
<br />
<div class="advancedToggle hide">
<div>
<paper-input type="number" id="txtPrePaddingMinutes" pattern="[0-9]*" required="required" min="0" step="1" label="${LabelPrePaddingMinutes}"></paper-input>