Fix wrong setting name for audio preview creation. Remove audio prune setting from admin.

This commit is contained in:
Darko
2015-07-28 11:26:11 +02:00
parent f51736d0c1
commit 2db812b5cb
2 changed files with 1 additions and 10 deletions
@@ -368,7 +368,7 @@ class ProcessAdditional
if (!$this->pdo->getSetting('ffmpegpath')) {
$this->_processAudioSample = $this->_processThumbnails = $this->_processVideo = false;
} else {
$this->_processAudioSample = ($this->pdo->getSetting('processaudiosample') == 0) ? false : true;
$this->_processAudioSample = ($this->pdo->getSetting('saveaudiopreview') == 0) ? false : true;
$this->_processThumbnails = ($this->pdo->getSetting('processthumbnails') == 0 ? false : true);
$this->_processVideo = ($this->pdo->getSetting('processvideos') == 0) ? false : true;
}
@@ -771,15 +771,6 @@
<div class="hint">Whether to save a preview of an audio release (requires deep rar inspection enabled).<br/>It is advisable to specify a path to the lame binary to reduce the size of audio previews.</div>
</td>
</tr>
<tr>
<td style="width:130px;"><label for="audiopreviewprune">Prune Audio Preview</label>:</td>
<td>
<input id="audiopreviewprune" class="short" name="audiopreviewprune" type="text" value="{$site->audiopreviewprune}" />
<div class="hint">Delete any audio previews older than this number of days.</div>
</td>
</tr>
</table>
</fieldset>
<fieldset>