mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-11 21:53:37 +00:00
7b3f4356c7
Change set "Scene numbering" checkbox and add text to the label tip in third step of add "New Show" if scene numbers are found for the selected show in the search results of the first step. Change label text on edit show page to highlight when manual numbering and scene numbers are available. Fix disabling "Scene numbering" of step three in add "New Show" was ignored when scene episode number mappings exist. Fix don't use scene episode number mappings everywhere when "Scene numbering" is disabled for a show. Fix width of legend underlining on the third step used to bring other display elements into alignment. Change when downloading magnet or nzb files, verify the file in cache dir and then move to blackhole. Change to consistent use of properties is_anime and is_sports in providers. Change name_parser pep8 and code conventions.
119 lines
No EOL
4.6 KiB
Cheetah
119 lines
No EOL
4.6 KiB
Cheetah
#import sickbeard
|
|
#from sickbeard.helpers import anon_url
|
|
##
|
|
#set global $header = 'New Show'
|
|
#set global $title = 'New Show'
|
|
#set global $sbPath = '../..'
|
|
#set global $statpath = '../..'
|
|
#set global $topmenu = 'home'
|
|
##
|
|
#import os.path
|
|
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_top.tmpl')
|
|
|
|
<script>
|
|
var show_scene_maps = ${show_scene_maps}
|
|
</script>
|
|
|
|
<script type="text/javascript" src="$sbRoot/js/formwizard.js?$sbPID"></script>
|
|
<script type="text/javascript" src="$sbRoot/js/qualityChooser.js?$sbPID"></script>
|
|
<script type="text/javascript" src="$sbRoot/js/newShow.js?$sbPID"></script>
|
|
<script type="text/javascript" src="$sbRoot/js/addShowOptions.js?$sbPID"></script>
|
|
|
|
#if $varExists('header')
|
|
<h1 class="header">$header</h1>
|
|
#else
|
|
<h1 class="title">$title</h1>
|
|
#end if
|
|
|
|
<image class="preload-image" style="position:absolute;top:-999px" src="$sbRoot/images/loading32<%= '-dark' if 'dark' == sickbeard.THEME_NAME else '' %>.gif" width="32" height="32" border="0">
|
|
|
|
<div id="newShowPortal">
|
|
|
|
<div id="displayText">aoeu</div>
|
|
<br />
|
|
|
|
<form id="addShowForm" method="post" action="$sbRoot/home/addShows/addNewShow" accept-charset="utf-8">
|
|
|
|
<fieldset class="sectionwrap step-one">
|
|
<legend class="legendStep"><p>Find show at a TV database</p></legend>
|
|
|
|
<div class="stepDiv">
|
|
<input type="hidden" id="indexer_timeout" value="$sickbeard.INDEXER_TIMEOUT" />
|
|
|
|
#if $use_provided_info
|
|
#set $provided_indexer_local = $provided_indexer
|
|
#set $provided_indexer_id_local = $provided_indexer_id
|
|
Show retrieved from existing metadata: <a href="<%= anon_url(sickbeard.indexerApi(provided_indexer_local).config['show_url'], provided_indexer_id_local) %>">$provided_indexer_name</a>
|
|
<input type="hidden" name="indexerLang" value="en" />
|
|
<input type="hidden" name="whichSeries" value="$provided_indexer_id" />
|
|
<input type="hidden" id="providedName" value="$provided_indexer_name" />
|
|
<input type="hidden" id="providedIndexer" value="$provided_indexer" />
|
|
#else
|
|
<input type="text" id="nameToSearch" value="$default_show_name" class="form-control form-control-inline input-sm input350" />
|
|
|
|
<span style="float:right">
|
|
<select name="indexerLang" id="indexerLangSelect" class="form-control form-control-inline input-sm">
|
|
<option value="en" selected="selected">en</option>
|
|
</select><b> *</b>
|
|
<select name="providedIndexer" id="providedIndexer" class="form-control form-control-inline input-sm">
|
|
<option value="0" #if $provided_indexer == 0 then "selected=\"selected\"" else ""#>All Indexers</option>
|
|
#for $indexer in $indexers
|
|
<option value="$indexer" #if $provided_indexer == $indexer then "selected=\"selected\"" else ""#>$indexers[$indexer]</option>
|
|
#end for
|
|
</select>
|
|
|
|
<input class="btn btn-inline" type="button" id="searchName" value="Search" />
|
|
</span>
|
|
<br />
|
|
<p style="margin:5px 0 15px"><b>*</b> SickGear supports english episodes. The language choice is used for fetching show data and episode filenames</p>
|
|
|
|
<div id="searchResults" style="height: 100%"></div>
|
|
#end if
|
|
|
|
</div>
|
|
<div style="clear:both"> </div>
|
|
</fieldset>
|
|
|
|
<fieldset class="sectionwrap step-two">
|
|
<legend class="legendStep"><p>Pick parent folder</p></legend>
|
|
|
|
<div class="stepDiv parent-folder">
|
|
#if $provided_show_dir
|
|
Pre-chosen Destination Folder: <b>$provided_show_dir</b> <br />
|
|
<input type="hidden" id="fullShowPath" name="fullShowPath" value="$provided_show_dir" /><br />
|
|
#else
|
|
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_rootDirs.tmpl')
|
|
#end if
|
|
</div>
|
|
<div style="clear:both"> </div>
|
|
</fieldset>
|
|
|
|
<fieldset class="sectionwrap step-three">
|
|
<legend class="legendStep"><p>Set custom options</p></legend>
|
|
<div class="stepDiv">
|
|
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_addShowOptions.tmpl')
|
|
</div>
|
|
<div style="clear:both"> </div>
|
|
</fieldset>
|
|
|
|
#for $curNextDir in $other_shows
|
|
<input type="hidden" name="other_shows" value="$curNextDir" />
|
|
#end for
|
|
<input type="hidden" name="skipShow" id="skipShow" value="" />
|
|
</form>
|
|
|
|
<br />
|
|
|
|
<div style="width: 100%; text-align: center;">
|
|
<input class="btn" type="button" id="addShowButton" value="Add Show" disabled="disabled" />
|
|
#if $provided_show_dir
|
|
<input class="btn" type="button" id="skipShowButton" value="Skip Show" />
|
|
#end if
|
|
</div>
|
|
|
|
<script type="text/javascript" src="$sbRoot/js/rootDirs.js?$sbPID"></script>
|
|
<script type="text/javascript" src="$sbRoot/js/blackwhite.js?$sbPID"></script>
|
|
|
|
</div></div>
|
|
|
|
#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl') |