mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
22ce0203cf
Use to prevent "Update to" on those select episodes while preserving the downloaded quality. Change group "Downloaded" status qualities into one section. Add "Downloaded/with archived quality" to set shows as downloaded using quality of archived status. Add "Archived with/downloaded quality" to set shows as archived using quality of downloaded status. Add "Archived with/default (min. initial quality of show here)". Change when settings/Post Processing/File Handling/Status of removed episodes/Set Archived is enabled, set status and quality accordingly. Add downloaded and archived statuses to Manage/Episode Status. Add quality pills to Manage/Episode Status. Change Manage/Episode Status season output format to be more readable. Change add SNATCHED_ANY and ARCHIVED, refactor accordingly.
120 lines
5.2 KiB
Cheetah
120 lines
5.2 KiB
Cheetah
#import sickbeard
|
|
#import datetime
|
|
#from sickbeard import common
|
|
##
|
|
#set global $title = 'Episode Overview'
|
|
#set global $header = 'Episode Overview'
|
|
#set global $sbPath = '..'
|
|
#set global $topmenu = 'manage'
|
|
##
|
|
#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
|
|
##
|
|
#if not $whichStatus or ($whichStatus and not $ep_counts)
|
|
##
|
|
#if $whichStatus:
|
|
<h3>no episodes have status <span class="grey-text">$common.statusStrings[$whichStatus].lower()</span></h3>
|
|
#end if
|
|
|
|
<form action="$sbRoot/manage/episodeStatuses" method="get">
|
|
|
|
Manage episodes with status
|
|
<select name="whichStatus" class="form-control form-control-inline input-sm" style="margin:0 10px">
|
|
|
|
#for $curStatus in [$common.SKIPPED, $common.UNKNOWN, $common.SNATCHED, $common.WANTED, $common.ARCHIVED, $common.IGNORED, $common.DOWNLOADED]:
|
|
<option value="$curStatus"#echo ('', ' selected="selected"')[$curStatus == $default_manage]#>$common.statusStrings[$curStatus]</option>
|
|
#end for
|
|
|
|
</select>
|
|
<input class="btn btn-inline" type="submit" value="Manage">
|
|
</form>
|
|
##
|
|
#else
|
|
#if $whichStatus in ($common.ARCHIVED, $common.IGNORED):
|
|
#set $row_class = 'good'
|
|
#elif $whichStatus == $common.SNATCHED:
|
|
#set $row_class = 'snatched'
|
|
#else
|
|
#set $row_class = $common.Overview.overviewStrings[$whichStatus]
|
|
#end if
|
|
|
|
#set $statusList = [$common.SKIPPED, $common.ARCHIVED, $common.IGNORED]
|
|
#if $common.DOWNLOADED == $whichStatus:
|
|
#set $statusList = [$common.ARCHIVED]
|
|
#elif $common.ARCHIVED == $whichStatus:
|
|
#set $statusList = [$common.SKIPPED, $common.DOWNLOADED, $common.ARCHIVED, $common.IGNORED]
|
|
#end if
|
|
#if $whichStatus in $statusList
|
|
$statusList.remove($whichStatus)
|
|
#end if
|
|
|
|
#if $whichStatus in $common.SNATCHED_ANY
|
|
$statusList.append($common.FAILED)
|
|
#end if
|
|
|
|
<script type="text/javascript" src="$sbRoot/js/manageEpisodeStatuses.js?v=$sbPID"></script>
|
|
|
|
<form action="$sbRoot/manage/changeEpisodeStatuses" method="post">
|
|
<input type="hidden" id="oldStatus" name="oldStatus" value="$whichStatus">
|
|
|
|
<h3><span class="grey-text">$ep_count</span> episode#echo ('s', '')[1 == $ep_count]# marked <span class="grey-text">$common.statusStrings[$whichStatus].lower()</span> in <span class="grey-text">${len($sorted_show_ids)}</span> show#echo ('s', '')[1 == len($sorted_show_ids)]#</h3>
|
|
|
|
<input type="hidden" id="row_class" value="$row_class">
|
|
|
|
<div class="form-group">
|
|
<span>Set checked shows/episodes to</span>
|
|
<select name="newStatus" class="form-control form-control-inline input-sm" style="margin:0 10px 0 5px">
|
|
#for $curStatus in $statusList:
|
|
<option value="$curStatus">$common.statusStrings[$curStatus]</option>
|
|
#end for
|
|
</select>
|
|
<input class="btn btn-inline go" type="submit" value="Go">
|
|
|
|
#if $common.DOWNLOADED != $whichStatus:
|
|
<span class="red-text" style="margin:0 0 0 30px">Override checked status to</span>
|
|
<select name="wantedStatus" class="form-control form-control-inline input-sm" style="margin:0 10px 0 5px">
|
|
<option value="$common.UNKNOWN">nothing</option>
|
|
<option value="$common.WANTED">$common.statusStrings[$common.WANTED]</option>
|
|
</select>
|
|
<input class="btn btn-inline go" type="submit" value="Go">
|
|
#end if
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<input type="button" class="btn btn-xs selectAllShows" value="Select all">
|
|
<input type="button" class="btn btn-xs unselectAllShows" value="Clear all">
|
|
<input type="button" class="btn btn-xs expandAll" value="Expand All Shows">
|
|
</div>
|
|
|
|
<table class="sickbeardTable manageTable" cellspacing="1" border="0" cellpadding="0">
|
|
<thead></thead>
|
|
<tbody>
|
|
#set $row = 0
|
|
#for $cur_indexer_id in $sorted_show_ids:
|
|
#if 0 == int($never_counts[$cur_indexer_id])
|
|
#set $output = '%d' % $ep_counts[$cur_indexer_id]
|
|
#elif $ep_counts[$cur_indexer_id] != $never_counts[$cur_indexer_id]
|
|
#set $diff = $ep_counts[$cur_indexer_id] - $never_counts[$cur_indexer_id]
|
|
#set $output = '%d' % $diff + ('', (' episode%s plus %s never with an airdate' % (('s', '')[1 == $ep_counts[$cur_indexer_id]], $never_counts[$cur_indexer_id])))[0 < $never_counts[$cur_indexer_id]]
|
|
#else
|
|
#set $output = '%s never with an airdate' % (('all %s %ss', '%s %s')[1 == $ep_counts[$cur_indexer_id]] % ($ep_counts[$cur_indexer_id], 'episode'))
|
|
#end if
|
|
<tr id="$cur_indexer_id" class="#echo ('odd', 'even')[$row % 2]##set $row+=1#">
|
|
<td><input type="checkbox" class="allCheck" id="allCheck-$cur_indexer_id" name="$cur_indexer_id-all"></td>
|
|
<td colspan="2" style="width:100%;text-align:left">
|
|
<a class="whitelink" href="$sbRoot/home/displayShow?show=$cur_indexer_id">$show_names[$cur_indexer_id]</a> <span style="color:#999">($output)</span><input type="button" class="pull-right get_more_eps btn" id="$cur_indexer_id-more" value="Expand"><input type="button" class="pull-right get_less_eps btn" id="$cur_indexer_id-less" value="Collapse">
|
|
</td>
|
|
</tr>
|
|
#end for
|
|
</tbody>
|
|
</table>
|
|
</form>
|
|
|
|
#end if
|
|
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|