mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-02 17:59:28 +01:00
Added xld option to config page
This commit is contained in:
@@ -417,7 +417,7 @@
|
||||
|
||||
<fieldset>
|
||||
<legend>Re-Encoding Options</legend>
|
||||
<small class="heading"><span style="float: left; margin-right: .3em; margin-top: 4px;" class="ui-icon ui-icon-info"></span>Note: this option requires the lame or ffmpeg encoder</small>
|
||||
<small class="heading"><span style="float: left; margin-right: .3em; margin-top: 4px;" class="ui-icon ui-icon-info"></span>Note: this option requires the lame, ffmpeg or xld encoder</small>
|
||||
<div class="checkbox row clearfix">
|
||||
<input type="checkbox" name="music_encoder" id="music_encoder" value="1" ${config['music_encoder']}/><label>Re-encode downloads during postprocessing</label>
|
||||
</div>
|
||||
@@ -434,35 +434,42 @@
|
||||
if config['encoder'] == 'lame':
|
||||
lameselect = 'selected="selected"'
|
||||
ffmpegselect = ''
|
||||
else:
|
||||
xldselect = ''
|
||||
elif config['encoder'] == 'ffmpeg':
|
||||
lameselect = ''
|
||||
ffmpegselect = 'selected="selected"'
|
||||
xldselect = ''
|
||||
else:
|
||||
lameselect = ''
|
||||
ffmpegselect = ''
|
||||
xldselect = 'selected="selected"'
|
||||
%>
|
||||
<div class="row">
|
||||
<label>Encoder</label>
|
||||
<select name="encoder">
|
||||
<select name="encoder" id="encoder">
|
||||
<option value="lame" ${lameselect}>lame</option>
|
||||
<option value="ffmpeg" ${ffmpegselect}>ffmpeg</option>
|
||||
<option value="xld" ${xldselect}>xld</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Format</label>
|
||||
<select name="encoderoutputformat">
|
||||
%for x in ['mp3', 'ogg', 'm4a']:
|
||||
<%
|
||||
if config['encoderoutputformat'] == x:
|
||||
outputselect = 'selected'
|
||||
else:
|
||||
outputselect = ''
|
||||
%>
|
||||
<option value=${x} ${outputselect}>${x}</option>
|
||||
%endfor
|
||||
</select>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div id="lameffmpegproperties">
|
||||
<fieldset>
|
||||
<legend>Audio Properties</legend>
|
||||
<div class="row">
|
||||
<label>Format</label>
|
||||
<select name="encoderoutputformat">
|
||||
%for x in ['mp3', 'ogg', 'm4a']:
|
||||
<%
|
||||
if config['encoderoutputformat'] == x:
|
||||
outputselect = 'selected'
|
||||
else:
|
||||
outputselect = ''
|
||||
%>
|
||||
<option value=${x} ${outputselect}>${x}</option>
|
||||
%endfor
|
||||
</select>
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>VBR/CBR</label>
|
||||
<select name="encodervbrcbr">
|
||||
@@ -536,7 +543,12 @@
|
||||
</div>
|
||||
|
||||
</fieldset>
|
||||
|
||||
</div>
|
||||
<div id="xldproperties">
|
||||
<div class="row">
|
||||
<label>XLD Profile</label>
|
||||
<input type="text" name="xldprofile" value="${config['xldprofile']}" size="43">
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
@@ -760,7 +772,12 @@
|
||||
$("#hpserveroptions").slideUp();
|
||||
};
|
||||
|
||||
handleNewSelection = function () {
|
||||
hideEncoderDivs = function () {
|
||||
$("#lameffmpegproperties").slideUp();
|
||||
$("#xldproperties").slideUp();
|
||||
};
|
||||
|
||||
handleNewServerSelection = function () {
|
||||
|
||||
hideServerDivs();
|
||||
|
||||
@@ -774,6 +791,23 @@
|
||||
}
|
||||
};
|
||||
|
||||
handleNewEncoderSelection = function () {
|
||||
|
||||
hideEncoderDivs();
|
||||
|
||||
switch ($(this).val()) {
|
||||
case 'xld':
|
||||
$("#xldproperties").slideDown();
|
||||
break;
|
||||
case 'ffmpeg':
|
||||
$("#lameffmpegproperties").slideDown();
|
||||
break;
|
||||
case 'lame':
|
||||
$("#lameffmpegproperties").slideDown();
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
||||
function openExtrasDialog() {
|
||||
$("#dialog").dialog({ close: function(){
|
||||
var elem = '<input type="button" data-success="Changes saved successfully">';
|
||||
@@ -914,8 +948,11 @@
|
||||
}
|
||||
});
|
||||
|
||||
$("#mirror").change(handleNewSelection);
|
||||
handleNewSelection.apply($("#mirror"));
|
||||
$("#mirror").change(handleNewServerSelection);
|
||||
handleNewServerSelection.apply($("#mirror"));
|
||||
|
||||
$("#encoder").change(handleNewEncoderSelection);
|
||||
handleNewEncoderSelection.apply($("#encoder"));
|
||||
|
||||
var deletedNewznabs = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user