2014-03-10 01:18:05 -04:00
|
|
|
#import sickbeard
|
2014-11-08 21:49:38 -05:00
|
|
|
#from sickbeard.helpers import anon_url
|
2014-03-10 01:18:05 -04:00
|
|
|
|
|
|
|
<table id="addRootDirTable" class="sickbeardTable tablesorter">
|
2014-10-21 15:09:01 -04:00
|
|
|
<thead><tr><th class="col-checkbox"><input type="checkbox" id="checkAll" checked=checked></th><th>Directory</th><th width="20%">Show Name (tvshow.nfo)<th width="20%">Indexer</td></tr></thead>
|
2014-03-10 01:18:05 -04:00
|
|
|
<tbody>
|
|
|
|
#for $curDir in $dirList:
|
|
|
|
#if $curDir['added_already']:
|
|
|
|
#continue
|
|
|
|
#end if
|
|
|
|
|
|
|
|
#set $show_id = $curDir['dir']
|
|
|
|
#if $curDir['existing_info'][0]:
|
2014-03-25 01:57:24 -04:00
|
|
|
#set $show_id = $show_id + '|' + $str($curDir['existing_info'][0]) + '|' + $str($curDir['existing_info'][1])
|
|
|
|
#set $indexer = $curDir['existing_info'][2]
|
2014-03-10 01:18:05 -04:00
|
|
|
#end if
|
|
|
|
|
2014-05-01 20:57:51 -04:00
|
|
|
#set $indexer = 0
|
2014-05-01 21:50:08 -04:00
|
|
|
#if $curDir['existing_info'][0]:
|
2014-05-01 20:57:51 -04:00
|
|
|
#set $indexer = $curDir['existing_info'][2]
|
2014-05-05 02:19:39 -04:00
|
|
|
#elif $sickbeard.INDEXER_DEFAULT > 0:
|
2014-05-01 20:57:51 -04:00
|
|
|
#set $indexer = $sickbeard.INDEXER_DEFAULT
|
|
|
|
#end if
|
|
|
|
|
2014-03-25 01:57:24 -04:00
|
|
|
<tr>
|
2014-10-21 15:09:01 -04:00
|
|
|
<td class="col-checkbox"><input type="checkbox" id="$show_id" class="dirCheck" checked=checked></td>
|
2014-03-10 01:18:05 -04:00
|
|
|
<td><label for="$show_id">$curDir['display_dir']</label></td>
|
2014-04-30 23:05:35 -04:00
|
|
|
#if $curDir['existing_info'][1] and $indexer > 0:
|
2014-11-08 21:49:38 -05:00
|
|
|
<td><a href="<%= anon_url(sickbeard.indexerApi(indexer).config['show_url'], curDir['existing_info'][0]) %>">$curDir['existing_info'][1]</a></td>
|
2014-03-25 01:57:24 -04:00
|
|
|
#else:
|
|
|
|
<td>?</td>
|
2014-03-10 01:18:05 -04:00
|
|
|
#end if
|
2014-09-30 18:20:37 -04:00
|
|
|
<td align="center">
|
2014-03-10 01:18:05 -04:00
|
|
|
<select name="indexer">
|
2014-03-26 22:01:53 -04:00
|
|
|
#for $curIndexer in $sickbeard.indexerApi().indexers.items():
|
2014-05-05 02:19:39 -04:00
|
|
|
<option value="$curIndexer[0]" #if $curIndexer[0] == $indexer then "selected=\"selected\"" else "UNKNOWN"#>$curIndexer[1]</option>
|
2014-03-10 01:18:05 -04:00
|
|
|
#end for
|
|
|
|
</select>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
#end for
|
|
|
|
</tbody>
|
|
|
|
</tbody>
|
2014-03-25 01:57:24 -04:00
|
|
|
</table>
|