mirror of
https://github.com/rembo10/headphones.git
synced 2026-07-12 20:14:00 +01:00
Added option to replace existing folders instead of creating duplicates
This commit is contained in:
@@ -500,7 +500,12 @@
|
||||
<fieldset>
|
||||
<legend>Post-Processing</legend>
|
||||
<div class="row checkbox left clearfix">
|
||||
<input type="checkbox" name="move_files" value="1" ${config['move_files']} /><label>Move downloads to Destination Folder</label>
|
||||
<input type="checkbox" name="move_files" id="move_files" value="1" ${config['move_files']} /><label>Move downloads to Destination Folder</label>
|
||||
<div id="move_files_options">
|
||||
<div class="row indent">
|
||||
<input type="checkbox" name="replace_existing_folders" value="1" ${config['replace_existing_folders']}><label>Replace existing folders?</label>
|
||||
</div>
|
||||
</div>
|
||||
<input type="checkbox" name="rename_files" value="1" ${config['rename_files']} /><label>Rename files</label>
|
||||
<input type="checkbox" name="correct_metadata" value="1" ${config['correct_metadata']} /><label>Correct metadata</label>
|
||||
<input type="checkbox" name="cleanup_files" value="1" ${config['cleanup_files']} /><label>Delete leftover files <small>(.m3u, .nfo, .sfv, .nzb, etc.)</small></label>
|
||||
@@ -1215,6 +1220,26 @@
|
||||
}
|
||||
});
|
||||
|
||||
if ($("#move_files").is(":checked"))
|
||||
{
|
||||
$("#move_files_options").show();
|
||||
}
|
||||
else
|
||||
{
|
||||
$("#move_files_options").hide();
|
||||
}
|
||||
|
||||
$("#move_files").click(function(){
|
||||
if ($("#move_files").is(":checked"))
|
||||
{
|
||||
$("#move_files_options").slideDown();
|
||||
}
|
||||
else
|
||||
{
|
||||
$("#move_files_options").slideUp();
|
||||
}
|
||||
});
|
||||
|
||||
if ($("#growl").is(":checked"))
|
||||
{
|
||||
$("#growloptions").show();
|
||||
|
||||
@@ -393,6 +393,9 @@ form .checkbox small {
|
||||
margin: 0 !important;
|
||||
width: auto;
|
||||
}
|
||||
form .indent input {
|
||||
margin-left: 15px;
|
||||
}
|
||||
ul,
|
||||
ol {
|
||||
margin-left: 2em;
|
||||
|
||||
Reference in New Issue
Block a user