2014-03-10 05:18:05 +00:00
|
|
|
#import sickbeard
|
|
|
|
#import datetime
|
2015-05-07 00:36:40 +00:00
|
|
|
#from lib import subliminal
|
2014-03-10 05:18:05 +00:00
|
|
|
#from sickbeard import common
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
2015-09-18 00:06:34 +00:00
|
|
|
#set global $title = 'Missing Subtitles'
|
|
|
|
#set global $header = 'Missing Subtitles'
|
2015-05-07 00:36:40 +00:00
|
|
|
#set global $sbPath = '..'
|
|
|
|
#set global $topmenu = 'manage'
|
|
|
|
##
|
2014-03-10 05:18:05 +00:00
|
|
|
#import os.path
|
2015-05-07 00:36:40 +00:00
|
|
|
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
|
|
|
|
2014-09-30 22:20:37 +00:00
|
|
|
<div id="content960">
|
2015-09-18 00:06:34 +00:00
|
|
|
#if $varExists('header')
|
2015-05-07 00:36:40 +00:00
|
|
|
<h1 class="header">$header</h1>
|
2015-09-18 00:06:34 +00:00
|
|
|
#else
|
2015-05-07 00:36:40 +00:00
|
|
|
<h1 class="title">$title</h1>
|
2014-03-10 05:18:05 +00:00
|
|
|
#end if
|
2015-05-07 00:36:40 +00:00
|
|
|
##
|
|
|
|
#if $whichSubs
|
|
|
|
#set subsLanguage = $subliminal.language.Language($whichSubs) if not $whichSubs == 'all' else 'All'
|
2014-03-10 05:18:05 +00:00
|
|
|
#end if
|
2015-05-07 00:36:40 +00:00
|
|
|
#if not $whichSubs or ($whichSubs and not $ep_counts)
|
|
|
|
#if $whichSubs:
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2015-05-07 00:36:40 +00:00
|
|
|
<h2>All of your episodes have $subsLanguage subtitles.</h2>
|
|
|
|
<br />
|
|
|
|
#end if
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2015-05-07 00:36:40 +00:00
|
|
|
<form action="$sbRoot/manage/subtitleMissed" method="get">
|
|
|
|
Manage episodes without
|
|
|
|
<select name="whichSubs" class="form-control form-control-inline input-sm">
|
|
|
|
<option value="all">All</option>
|
|
|
|
#for $sub_lang in $subliminal.language.language_list($sickbeard.SUBTITLES_LANGUAGES):
|
|
|
|
<option value="$sub_lang.alpha2">$sub_lang</option>
|
|
|
|
#end for
|
|
|
|
</select>
|
|
|
|
subtitles
|
|
|
|
<input class="btn" type="submit" value="Manage">
|
|
|
|
</form>
|
2014-03-10 05:18:05 +00:00
|
|
|
#else
|
|
|
|
|
2015-09-12 07:17:26 +00:00
|
|
|
<script type="text/javascript" src="$sbRoot/js/manageSubtitleMissed.js?v=$sbPID"></script>
|
2015-05-07 00:36:40 +00:00
|
|
|
<input type="hidden" id="selectSubLang" name="selectSubLang" value="$whichSubs">
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2015-05-07 00:36:40 +00:00
|
|
|
<form action="$sbRoot/manage/downloadSubtitleMissed" method="post">
|
|
|
|
<h2>Episodes without $subsLanguage subtitles.</h2>
|
|
|
|
<br />
|
|
|
|
Download missed subtitles for selected episodes <input class="btn btn-inline" type="submit" value="Go" />
|
|
|
|
<div>
|
|
|
|
<button type="button" class="btn btn-xs selectAllShows">Select all</a></button>
|
|
|
|
<button type="button" class="btn btn-xs unselectAllShows">Clear all</a></button>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<table class="sickbeardTable manageTable" cellspacing="1" border="0" cellpadding="0">
|
|
|
|
#for $cur_indexer_id in $sorted_show_ids:
|
|
|
|
<tr id="$cur_indexer_id">
|
|
|
|
<th><input type="checkbox" class="allCheck" id="allCheck-$cur_indexer_id" name="$cur_indexer_id-all" checked="checked"></th>
|
|
|
|
<th colspan="3" style="width: 100%; text-align: left;"><a class="whitelink" href="$sbRoot/home/displayShow?show=$cur_indexer_id">$show_names[$cur_indexer_id]</a> ($ep_counts[$cur_indexer_id]) <input type="button" class="get_more_eps btn" id="$cur_indexer_id" value="Expand"></th>
|
|
|
|
</tr>
|
|
|
|
#end for
|
|
|
|
</table>
|
|
|
|
</form>
|
2014-03-10 05:18:05 +00:00
|
|
|
#end if
|
2014-09-30 22:20:37 +00:00
|
|
|
</div>
|
2015-09-18 00:06:34 +00:00
|
|
|
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl')
|