2014-03-10 05:18:05 +00:00
|
|
|
#import sickbeard
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-05-08 02:46:54 +00:00
|
|
|
#set global $header = 'Post Processing'
|
|
|
|
#set global $title = $header
|
|
|
|
#set global $topmenu = 'home'
|
|
|
|
#set global $sbPath = '../..'
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2014-03-10 05:18:05 +00:00
|
|
|
#import os.path
|
2015-05-08 02:46:54 +00:00
|
|
|
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
2015-05-07 00:36:40 +00:00
|
|
|
|
2014-03-25 05:57:24 +00:00
|
|
|
#if $varExists('header')
|
2014-03-10 05:18:05 +00:00
|
|
|
<h1 class="header">$header</h1>
|
2014-03-25 05:57:24 +00:00
|
|
|
#else
|
2014-03-10 05:18:05 +00:00
|
|
|
<h1 class="title">$title</h1>
|
|
|
|
#end if
|
2014-09-30 22:20:37 +00:00
|
|
|
|
2015-05-08 02:46:54 +00:00
|
|
|
#set selected = ' selected="selected"'
|
|
|
|
|
|
|
|
<form name="processForm" method="post" action="processEpisode">
|
2014-09-30 22:20:37 +00:00
|
|
|
<input type="hidden" id="type" name="type" value="manual">
|
2015-05-08 02:46:54 +00:00
|
|
|
|
|
|
|
<div id="postProcess" class="stepDiv">
|
|
|
|
|
|
|
|
<div class="field-pair">
|
|
|
|
<label for="episodeDir">
|
|
|
|
<span class="component-title input">Folder to process</span>
|
|
|
|
<span class="component-desc">
|
|
|
|
<input id="episodeDir" name="dir" type="text" class="form-control form-control-inline input-sm input350">
|
|
|
|
<p class="clear-left">select a folder containing episode files</p>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field-pair">
|
|
|
|
<label for="process_method">
|
|
|
|
<span class="component-title input">Process method to use</span>
|
|
|
|
<span class="component-desc">
|
|
|
|
<select id="process_method" name="process_method" class="form-control form-control-inline input-sm">
|
|
|
|
#set $process_methods = {'copy': 'Copy', 'move': 'Move', 'hardlink': 'Hard Link', 'symlink': 'Symbolic Link'}
|
|
|
|
#for $method in ('copy', 'move', 'hardlink', 'symlink'):
|
|
|
|
<option value="$method"#echo ('', $selected)[$method == $sickbeard.PROCESS_METHOD]#>$process_methods[$method]</option>
|
|
|
|
#end for
|
|
|
|
</select>
|
|
|
|
<label for="cleanup">
|
|
|
|
<span id="move-and-trash" style="display:#echo ('none', 'block')['move' == $sickbeard.PROCESS_METHOD]#">
|
|
|
|
then trash left over subdirs/files<input id="cleanup" name="cleanup" type="checkbox" style="float:none;margin-left:10px">
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field-pair">
|
|
|
|
<label for="force">
|
|
|
|
<span class="component-title">Force already processed</span>
|
|
|
|
<span class="component-desc">
|
|
|
|
<input id="force" name="force" type="checkbox">
|
|
|
|
<span>allow known post processed dirs/files to be processed again</span>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field-pair">
|
|
|
|
<label for="force_replace">
|
|
|
|
<span class="component-title">Force replace existing</span>
|
|
|
|
<span class="component-desc">
|
|
|
|
<input id="force_replace" name="force_replace" type="checkbox">
|
|
|
|
<span>replace existing files ignoring file size and video quality differences</span>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
#if $sickbeard.USE_FAILED_DOWNLOADS:
|
|
|
|
<div class="field-pair">
|
|
|
|
<label for="failed">
|
|
|
|
<span class="component-title">Mark as failed</span>
|
|
|
|
<span class="component-desc">
|
|
|
|
<input id="failed" name="failed" type="checkbox">
|
|
|
|
<span>queue a search to try find a different release for each processed item</span>
|
|
|
|
</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
#end if
|
|
|
|
|
|
|
|
<div class="field-pair" style="margin-top:12px">
|
|
|
|
<span class="component-title input"> </span>
|
|
|
|
<span class="component-desc">
|
|
|
|
<input id="submit" class="btn" type="submit" value="Process">
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div><!-- /postProcess -->
|
2014-09-30 22:20:37 +00:00
|
|
|
</form>
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
<!--
|
2015-05-08 02:46:54 +00:00
|
|
|
#raw
|
|
|
|
jQuery('#episodeDir').fileBrowser({title:'Select Unprocessed Episode Folder', key:'postprocessPath'});
|
|
|
|
$('#process_method').change(function(){
|
|
|
|
$('#move-and-trash').css({'display':('move' == $(this).attr('value') ? 'block' : 'none')})
|
|
|
|
});
|
|
|
|
#end raw
|
2014-03-10 05:18:05 +00:00
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
|
2015-05-08 02:46:54 +00:00
|
|
|
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|