2014-03-10 01:18:05 -04:00
|
|
|
#import sickbeard
|
2014-05-27 03:44:23 -04:00
|
|
|
#import lib.adba as adba
|
2014-03-10 01:18:05 -04:00
|
|
|
#from sickbeard import common
|
2014-11-23 04:17:37 -05:00
|
|
|
#from sickbeard.common import *
|
2014-03-10 01:18:05 -04:00
|
|
|
#from sickbeard import exceptions
|
|
|
|
#from sickbeard import scene_exceptions
|
2014-09-30 18:20:37 -04:00
|
|
|
#from sickbeard.blackandwhitelist import *
|
2014-03-10 01:18:05 -04:00
|
|
|
#set global $title="Edit " + $show.name
|
2014-09-30 18:20:37 -04:00
|
|
|
#set global $header="Edit " + $show.name
|
2014-03-10 01:18:05 -04:00
|
|
|
|
|
|
|
#set global $sbPath=".."
|
|
|
|
|
|
|
|
#set global $topmenu="home"
|
|
|
|
#import os.path
|
|
|
|
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl")
|
|
|
|
|
2014-10-21 15:09:01 -04:00
|
|
|
|
2014-03-10 01:18:05 -04:00
|
|
|
#if $varExists('header')
|
|
|
|
<h1 class="header">$header</h1>
|
|
|
|
#else
|
|
|
|
<h1 class="title">$title</h1>
|
|
|
|
#end if
|
|
|
|
|
2014-10-21 15:09:01 -04:00
|
|
|
<div id="editShow">
|
2014-03-10 01:18:05 -04:00
|
|
|
<script type="text/javascript" src="$sbRoot/js/qualityChooser.js?$sbPID"></script>
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
<!--
|
|
|
|
\$(document).ready(function(){
|
|
|
|
|
2014-03-10 22:32:02 -04:00
|
|
|
\$.getJSON('$sbRoot/home/addShows/getIndexerLanguages', {}, function(data) {
|
2014-03-10 01:18:05 -04:00
|
|
|
var resultStr = '';
|
|
|
|
|
|
|
|
if (data.results.length == 0) {
|
|
|
|
flag = ' class="flag" style="background-image:url($sbRoot/images/flags/${show.lang}.png)"';
|
|
|
|
resultStr = '<option value="$show.lang" selected="selected" + flag>$show.lang</option>';
|
|
|
|
} else {
|
|
|
|
var current_lang_added = false;
|
|
|
|
\$.each(data.results, function(index, obj) {
|
|
|
|
|
|
|
|
if (obj == "$show.lang") {
|
|
|
|
selected = ' selected="selected"';
|
|
|
|
current_lang_added = true;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
selected = '';
|
|
|
|
}
|
|
|
|
|
|
|
|
flag = ' class="flag" style="background-image:url($sbRoot/images/flags/' + obj + '.png);"';
|
|
|
|
resultStr += '<option value="' + obj + '"' + selected + flag + '>' + obj + '</option>';
|
|
|
|
});
|
|
|
|
if (!current_lang_added)
|
|
|
|
resultStr += '<option value="$show.lang" selected="selected">$show.lang</option>';
|
|
|
|
|
|
|
|
}
|
2014-03-10 22:32:02 -04:00
|
|
|
\$('#indexerLangSelect').html(resultStr)
|
2014-03-10 01:18:05 -04:00
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
//-->
|
|
|
|
</script>
|
|
|
|
|
2014-10-21 15:09:01 -04:00
|
|
|
<br>
|
2014-03-10 01:18:05 -04:00
|
|
|
|
|
|
|
<form action="editShow" method="post">
|
|
|
|
<input type="hidden" name="show" value="$show.indexerid" />
|
2014-11-23 04:17:37 -05:00
|
|
|
<b>Location:</b></br>
|
|
|
|
<input type="text" name="location" id="location" value="$show._location" class="form-control form-control-inline input-sm input350" /><br />
|
2014-03-10 01:18:05 -04:00
|
|
|
<br />
|
|
|
|
|
2014-11-23 04:17:37 -05:00
|
|
|
<b>Scene Exception:</b><br />
|
|
|
|
<input type="text" id="SceneName" class="form-control form-control-inline input-sm input200">
|
2014-10-21 15:09:01 -04:00
|
|
|
<input class="btn btn-inline" type="button" value="Add" id="addSceneName"><br />
|
2014-03-10 01:18:05 -04:00
|
|
|
|
|
|
|
<div id="SceneException" >
|
2014-10-21 15:09:01 -04:00
|
|
|
<div>
|
2014-03-10 01:18:05 -04:00
|
|
|
<p>This will <b>affect the episode show search</b> on nzb and torrent provider.<br />
|
|
|
|
This list overrides the original name, it doesn't append to it.<br />
|
|
|
|
</p>
|
2014-11-23 04:17:37 -05:00
|
|
|
</div>
|
|
|
|
|
2014-10-21 15:09:01 -04:00
|
|
|
<div class="pull-left" style="text-align:center;">
|
2014-03-10 01:18:05 -04:00
|
|
|
<h4>Exceptions List</h4>
|
|
|
|
<select id="exceptions_list" name="exceptions_list" multiple="multiple" style="min-width:10em;" >
|
|
|
|
#for $cur_exception in $show.exceptions:
|
|
|
|
<option value="$cur_exception">$cur_exception</option>
|
|
|
|
#end for
|
|
|
|
</select>
|
2014-11-23 04:17:37 -05:00
|
|
|
<div>
|
2014-03-10 01:18:05 -04:00
|
|
|
<input id="removeSceneName" value="Remove" class="btn float-left" type="button" style="margin-top: 10px;"/>
|
2014-11-23 04:17:37 -05:00
|
|
|
</div>
|
2014-03-10 01:18:05 -04:00
|
|
|
<br />
|
2014-11-23 04:17:37 -05:00
|
|
|
</div>
|
2014-03-10 01:18:05 -04:00
|
|
|
</div>
|
2014-10-21 15:09:01 -04:00
|
|
|
<div class="clearfix"></div>
|
2014-03-10 01:18:05 -04:00
|
|
|
<br />
|
|
|
|
|
2014-11-23 04:17:37 -05:00
|
|
|
<b>Quality:</b><br />
|
|
|
|
#set $qualities = $common.Quality.splitQuality(int($show.quality))
|
|
|
|
#set global $anyQualities = $qualities[0]
|
|
|
|
#set global $bestQualities = $qualities[1]
|
|
|
|
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_qualityChooser.tmpl")
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<b>Default Episode Status:</b><br />
|
|
|
|
(this will set a default status to be applied to any newly added episodes)<br />
|
|
|
|
<select name="defaultEpStatus" id="defaultEpStatusSelect" class="form-control form-control-inline input-sm">
|
|
|
|
#for $curStatus in [$WANTED, $SKIPPED, $ARCHIVED, $IGNORED]:
|
2014-12-17 16:32:25 -05:00
|
|
|
<option value="$curStatus" #if $curStatus == $show.default_ep_status then 'selected="selected"' else ''#>$statusStrings[$curStatus]</option>
|
2014-11-23 04:17:37 -05:00
|
|
|
#end for
|
|
|
|
</select><br />
|
2014-03-10 01:18:05 -04:00
|
|
|
<br />
|
|
|
|
|
2014-11-23 04:17:37 -05:00
|
|
|
<b>Info Language:</b><br />
|
|
|
|
(this will only affect the language of the retrieved metadata file contents and episode filenames)<br />
|
|
|
|
<select name="indexerLang" id="indexerLangSelect" class="form-control form-control-inline input-sm"></select><br />
|
|
|
|
<br />
|
|
|
|
|
|
|
|
<b>Flatten files (no folders):</b> <input type="checkbox" name="flatten_folders" #if $show.flatten_folders == 1 and not $sickbeard.NAMING_FORCE_FOLDERS then "checked=\"checked\"" else ""# #if $sickbeard.NAMING_FORCE_FOLDERS then "disabled=\"disabled\"" else ""#/><br />
|
|
|
|
<b>Paused:</b> <input type="checkbox" name="paused" #if $show.paused == 1 then "checked=\"checked\"" else ""# /><br />
|
|
|
|
<b>Subtitles:</b> <input type="checkbox" name="subtitles"#if $show.subtitles == 1 and $sickbeard.USE_SUBTITLES then " checked=\"checked\"" else ""##if not $sickbeard.USE_SUBTITLES then " disabled=\"disabled\"" else ""#/><br />
|
|
|
|
<br/>
|
2014-03-10 01:18:05 -04:00
|
|
|
|
2014-05-30 01:48:02 -04:00
|
|
|
<b>Scene Numbering: </b>
|
|
|
|
<input type="checkbox" name="scene" #if $show.scene == 1 then "checked=\"checked\"" else ""# /><br/>
|
2014-11-23 04:17:37 -05:00
|
|
|
(check this if you wish to search by scene numbering, uncheck to search by indexer numbering)<br/>
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
<b>Air by date: </b>
|
2014-03-10 01:18:05 -04:00
|
|
|
<input type="checkbox" name="air_by_date" #if $show.air_by_date == 1 then "checked=\"checked\"" else ""# /><br />
|
2014-11-23 04:17:37 -05:00
|
|
|
(check this if the show is released as Show.03.02.2010 rather than Show.S02E03)<br />
|
|
|
|
<br />
|
|
|
|
|
2014-04-28 05:15:29 -04:00
|
|
|
<b>Sports: </b>
|
|
|
|
<input type="checkbox" name="sports" #if $show.sports == 1 then "checked=\"checked\"" else ""# /><br />
|
2014-11-23 04:17:37 -05:00
|
|
|
(check this if the show is a sporting or MMA event)<br />
|
|
|
|
<br />
|
|
|
|
|
2014-05-26 02:29:22 -04:00
|
|
|
<b>Anime: </b>
|
|
|
|
<input type="checkbox" name="anime" #if $show.is_anime then "CHECKED" else ""#><br />
|
2014-11-23 04:17:37 -05:00
|
|
|
(check this if the show is released as Show.265 rather than Show.S02E03, this show is an anime)<br />
|
|
|
|
<br />
|
|
|
|
|
2014-03-10 01:18:05 -04:00
|
|
|
<b>DVD Order: </b>
|
|
|
|
<input type="checkbox" name="dvdorder" #if $show.dvdorder == 1 then "checked=\"checked\"" else ""# /><br/>
|
|
|
|
(check this if you wish to use the DVD order instead of the Airing order)
|
|
|
|
<br/><br/>
|
2014-04-24 01:18:16 -04:00
|
|
|
|
2014-11-23 04:17:37 -05:00
|
|
|
#if $anyQualities + $bestQualities
|
|
|
|
<b>Archive on first match:</b>
|
|
|
|
<input type="checkbox" name="archive_firstmatch" #if $show.archive_firstmatch == 1 then "checked=\"checked\"" else ""# /><br>
|
|
|
|
(check this to have the episode archived after the first best match is found from your archive quality list)</br>
|
|
|
|
<br />
|
|
|
|
#end if
|
|
|
|
|
|
|
|
<b>Ignored Words:</b></br>
|
|
|
|
<input type="text" name="rls_ignore_words" id="rls_ignore_words" value="$show.rls_ignore_words" class="form-control form-control-inline input-sm input350" /><br />
|
|
|
|
Results with any of these words in the title will be filtered out<br />
|
|
|
|
Separate words with a comma, e.g. "word1,word2,word3"<br />
|
|
|
|
<br />
|
2014-04-24 01:18:16 -04:00
|
|
|
|
2014-11-23 04:17:37 -05:00
|
|
|
<b>Required Words:</b></br>
|
|
|
|
<input type="text" name="rls_require_words" id="rls_require_words" value="$show.rls_require_words" class="form-control form-control-inline input-sm input350" /><br />
|
2014-04-24 01:18:16 -04:00
|
|
|
Results without one of these words in the title will be filtered out <br />
|
2014-11-23 04:17:37 -05:00
|
|
|
Separate words with a comma, e.g. "word1,word2,word3"<br />
|
|
|
|
<br />
|
2014-04-24 01:18:16 -04:00
|
|
|
|
2014-07-17 20:43:36 -04:00
|
|
|
#if $show.is_anime:
|
2014-07-15 05:40:21 -04:00
|
|
|
#from sickbeard.blackandwhitelist import *
|
2014-06-24 16:54:51 -04:00
|
|
|
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_blackwhitelist.tmpl")
|
2014-05-27 03:44:23 -04:00
|
|
|
#end if
|
2014-07-15 05:40:21 -04:00
|
|
|
|
2014-05-27 03:44:23 -04:00
|
|
|
<input type="hidden" name="whitelist" id="whitelist"/>
|
|
|
|
<input type="hidden" name="blacklist" id="blacklist"/>
|
|
|
|
|
2014-03-10 01:18:05 -04:00
|
|
|
<input type="submit" id="submit" value="Submit" class="btn btn-primary" />
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
<!--
|
|
|
|
var all_exceptions = new Array;
|
|
|
|
|
|
|
|
jQuery('#location').fileBrowser({ title: 'Select Show Location' });
|
|
|
|
|
|
|
|
\$('#submit').click(function(){
|
|
|
|
all_exceptions = []
|
2014-05-29 09:27:05 -04:00
|
|
|
|
2014-03-10 01:18:05 -04:00
|
|
|
\$("#exceptions_list option").each ( function() {
|
|
|
|
all_exceptions.push( \$(this).val() );
|
|
|
|
});
|
|
|
|
|
|
|
|
\$("#exceptions_list").val(all_exceptions);
|
2014-05-29 09:27:05 -04:00
|
|
|
|
|
|
|
var realvalues = [];
|
|
|
|
|
|
|
|
\$('#white option').each(function(i, selected) {
|
|
|
|
realvalues[i] = \$(selected).val();
|
|
|
|
});
|
|
|
|
\$("#whitelist").val(realvalues.join(","));
|
|
|
|
|
|
|
|
realvalues = [];
|
|
|
|
\$('#black option').each(function(i, selected) {
|
|
|
|
realvalues[i] = \$(selected).val();
|
|
|
|
});
|
|
|
|
\$("#blacklist").val(realvalues.join(","));
|
|
|
|
|
2014-03-10 01:18:05 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
\$('#addSceneName').click(function() {
|
|
|
|
var scene_ex = \$('#SceneName').val()
|
|
|
|
var option = \$("<option>")
|
|
|
|
all_exceptions = []
|
|
|
|
|
|
|
|
\$("#exceptions_list option").each ( function() {
|
|
|
|
all_exceptions.push( \$(this).val() )
|
|
|
|
});
|
|
|
|
|
|
|
|
\$('#SceneName').val('')
|
|
|
|
|
|
|
|
if (jQuery.inArray(scene_ex, all_exceptions) > -1 || (scene_ex == ''))
|
|
|
|
return
|
|
|
|
|
|
|
|
\$("#SceneException").show()
|
|
|
|
|
|
|
|
option.attr("value",scene_ex)
|
|
|
|
option.html(scene_ex)
|
|
|
|
return option.appendTo('#exceptions_list');
|
|
|
|
});
|
|
|
|
|
|
|
|
\$('#removeSceneName').click(function() {
|
|
|
|
\$('#exceptions_list option:selected').remove();
|
|
|
|
|
|
|
|
\$(this).toggle_SceneException()
|
|
|
|
});
|
|
|
|
|
|
|
|
$.fn.toggle_SceneException = function() {
|
|
|
|
all_exceptions = []
|
|
|
|
|
|
|
|
\$("#exceptions_list option").each ( function() {
|
|
|
|
all_exceptions.push( \$(this).val() );
|
|
|
|
});
|
|
|
|
|
|
|
|
if (all_exceptions == '')
|
|
|
|
\$("#SceneException").hide();
|
|
|
|
else
|
|
|
|
\$("#SceneException").show();
|
|
|
|
}
|
|
|
|
|
2014-05-29 09:27:05 -04:00
|
|
|
\$(this).toggle_SceneException();
|
|
|
|
|
|
|
|
\$('#removeW').click(function() {
|
|
|
|
return !\$('#white option:selected').remove().appendTo('#pool');
|
|
|
|
});
|
|
|
|
\$('#addW').click(function() {
|
|
|
|
return !\$('#pool option:selected').remove().appendTo('#white');
|
|
|
|
});
|
|
|
|
\$('#addB').click(function() {
|
|
|
|
return !\$('#pool option:selected').remove().appendTo('#black');
|
|
|
|
});
|
|
|
|
\$('#removeP').click(function() {
|
|
|
|
return !\$('#pool option:selected').remove();
|
|
|
|
});
|
|
|
|
\$('#removeB').click(function() {
|
|
|
|
return !\$('#black option:selected').remove().appendTo('#pool');
|
|
|
|
});
|
|
|
|
|
|
|
|
\$('#addToWhite').click(function() {
|
|
|
|
var group = \$('#addToPoolText').attr("value")
|
|
|
|
if(group == "")
|
|
|
|
return
|
|
|
|
\$('#addToPoolText').attr("value", "")
|
|
|
|
var option = \$("<option>")
|
|
|
|
option.attr("value",group)
|
|
|
|
option.html(group)
|
|
|
|
return option.appendTo('#white');
|
|
|
|
});
|
|
|
|
\$('#addToBlack').click(function() {
|
|
|
|
var group = \$('#addToPoolText').attr("value")
|
|
|
|
if(group == "")
|
|
|
|
return
|
|
|
|
\$('#addToPoolText').attr("value", "")
|
|
|
|
var option = \$("<option>")
|
|
|
|
option.attr("value",group)
|
|
|
|
option.html(group)
|
|
|
|
return option.appendTo('#black');
|
|
|
|
});
|
|
|
|
|
2014-03-10 01:18:05 -04:00
|
|
|
//-->
|
|
|
|
</script>
|
2014-10-21 15:09:01 -04:00
|
|
|
</div>
|
2014-03-10 01:18:05 -04:00
|
|
|
#include $os.path.join($sickbeard.PROG_DIR,"gui/slick/interfaces/default/inc_bottom.tmpl")
|