SickGear/gui/slick/interfaces/default/home_postprocess.tmpl
JackDandy 4f4858f4e4 Change to post process files ordered largest to smallest and tidied PP logging output.
Add "then trash subdirs and files" to the Process method "Move" on the manual post process page.
Add using show scene exceptions with post processing.
Change overhaul processTV into a thread safe class.
Change postProcessor and processTV to PEP8 standards.
Change overhaul Manual Post-Processing page in line with layout style and improve texts.
Change Force Processes enabled, only the largest video file of many will be processed instead of all files.
Change visual ui of Postprocessing results to match the logs and errors view.
Change remove ugly printing of episode object during PP seen in external apps like sabnzbd.
Change to streamline output toward actual work done instead of showing all vars.
Change pp report items from describing actions about to happen to instead detail the actual outcome of actions.
Add clarity to the output of a successful post process but with some issues rather than "there were problems".
Add a conclusive bottom line to the pp result report.
2015-05-08 04:18:30 +01:00

105 lines
No EOL
3.5 KiB
Cheetah

#import sickbeard
##
#set global $header = 'Post Processing'
#set global $title = $header
#set global $topmenu = 'home'
#set global $sbPath = '../..'
##
#import os.path
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
#if $varExists('header')
<h1 class="header">$header</h1>
#else
<h1 class="title">$title</h1>
#end if
#set selected = ' selected="selected"'
<form name="processForm" method="post" action="processEpisode">
<input type="hidden" id="type" name="type" value="manual">
<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">&nbsp;</span>
<span class="component-desc">
<input id="submit" class="btn" type="submit" value="Process">
</span>
</div>
</div><!-- /postProcess -->
</form>
<script type="text/javascript" charset="utf-8">
<!--
#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
//-->
</script>
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')