2014-03-10 05:18:05 +00:00
#import sickbeard
#from sickbeard import clients
#set global $ title = " Config - Episode Search "
#set global $ header = " Search Options "
#set global $ sbPath = " ../.. "
#set global $ topmenu = " config " #
#import os . path
#include $ os . path . join ( $ sickbeard . PROG_DIR , " gui/slick/interfaces/default/inc_top.tmpl " )
<script type="text/javascript" src=" $ sbRoot /js/configSearch.js? $ sbPID "></script>
<script type="text/javascript" src=" $ sbRoot /js/config.js? $ sbPID "></script>
2014-10-21 19:09:01 +00:00
2014-03-10 05:18:05 +00:00
#if $ varExists ( ' header ' )
<h1 class="header"> $ header </h1>
#else
<h1 class="title"> $ title </h1>
#end if
2014-10-21 19:09:01 +00:00
2014-03-10 05:18:05 +00:00
<div id="config">
2014-10-21 19:09:01 +00:00
<div id="config-content">
2014-03-10 05:18:05 +00:00
2014-10-21 19:09:01 +00:00
<form id="configForm" action="saveSearch" method="post">
2014-03-10 05:18:05 +00:00
<div id="config-components">
<ul>
<li><a href=" #core - component - group1 " >Episode Search</a></li>
<li><a href=" #core - component - group2 " >NZB Search</a></li>
<li><a href=" #core - component - group3 " >Torrent Search</a></li>
</ul>
2014-10-21 19:09:01 +00:00
<div id="core-component-group1" class="component-group">
2014-03-10 05:18:05 +00:00
<div class="component-group-desc">
<h3>Episode Search</h3>
<p>Settings that dictate how and when episode searching works with <a href=" $ sbRoot /config/providers">Providers</a>.</p>
</div>
<fieldset class="component-group-list">
<div class="field-pair">
2014-05-14 22:23:59 +00:00
<input type="checkbox" name="download_propers" id="download_propers" class="enabler" #if $ sickbeard . DOWNLOAD_PROPERS == True then " checked= \" checked \" " else " " # />
2014-10-21 19:09:01 +00:00
<label for="download_propers">
2014-03-10 05:18:05 +00:00
<span class="component-title">Download Propers</span>
<span class="component-desc">Replace original download with "Proper/Repack" if nuked?</span>
</label>
</div>
2014-05-12 10:34:18 +00:00
2014-05-14 22:23:59 +00:00
<div id="content_download_propers">
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck" for="check_propers_interval">
2014-05-14 22:23:59 +00:00
<span class="component-title">Check Propers Every:</span>
<span class="component-desc">
2014-10-21 19:09:01 +00:00
<select id="check_propers_interval" name="check_propers_interval" class="form-control input-sm">
2014-05-14 22:23:59 +00:00
#set $ check_propers_interval_text = { ' daily ' : " 24 hours " , ' 4h ' : " 4 hours " , ' 90m ' : " 90 mins " , ' 45m ' : " 45 mins " , ' 15m ' : " 15 mins " }
#for $ curInterval in ( ' daily ' , ' 4h ' , ' 90m ' , ' 45m ' , ' 15m ' ) :
#if $ sickbeard . CHECK_PROPERS_INTERVAL == $ curInterval :
#set $ selMode = " selected= \" selected \" "
#else
#set $ selMode = " "
#end if
<option value=" $ curInterval " $ selMode > $ check_propers_interval_text [ $ curInterval ]</option>
#end for
</select>
</span>
</label>
</div>
</div>
2014-10-21 19:09:01 +00:00
<div class="field-pair">
<label class="nocheck">
2014-09-15 08:57:50 +00:00
<span class="component-title">Backlog Search Day(s)</span>
2014-10-21 19:09:01 +00:00
<input type="text" name="backlog_days" value=" $ sickbeard . BACKLOG_DAYS " class="form-control input-sm input75" />
2014-09-15 08:57:50 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-09-15 08:57:50 +00:00
<span class="component-title"> </span>
2014-10-21 19:09:01 +00:00
<span class="component-desc">Number of day(s) to search from. (example 7)</span>
2014-09-15 08:57:50 +00:00
</label>
</div>
2014-09-30 22:20:37 +00:00
2014-05-12 10:34:18 +00:00
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-05-12 10:34:18 +00:00
<span class="component-title">Backlog Search Frequency</span>
2014-10-21 19:09:01 +00:00
<input type="text" name="backlog_frequency" value=" $ sickbeard . BACKLOG_FREQUENCY " class="form-control input-sm input75" />
2014-05-12 10:34:18 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-05-12 10:34:18 +00:00
<span class="component-title"> </span>
2014-09-30 22:20:37 +00:00
<span class="component-desc">Time in minutes between searches (min. $ sickbeard . MIN_BACKLOG_FREQUENCY )</span>
2014-05-12 10:34:18 +00:00
</label>
</div>
2014-05-15 04:16:46 +00:00
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-05-15 04:16:46 +00:00
<span class="component-title">Daily Search Frequency</span>
2014-10-21 19:09:01 +00:00
<input type="text" name="dailysearch_frequency" value=" $ sickbeard . DAILYSEARCH_FREQUENCY " class="form-control input-sm input75" />
2014-05-15 04:16:46 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-05-15 04:16:46 +00:00
<span class="component-title"> </span>
2014-09-15 09:30:01 +00:00
<span class="component-desc">Time in minutes between searches (min. $ sickbeard . MIN_DAILYSEARCH_FREQUENCY )</span>
2014-05-15 04:16:46 +00:00
</label>
</div>
2014-03-10 05:18:05 +00:00
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title">Usenet Retention</span>
2014-10-21 19:09:01 +00:00
<input type="text" name="usenet_retention" value=" $ sickbeard . USENET_RETENTION " class="form-control input-sm input75" />
2014-03-10 05:18:05 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
<span class="component-desc">Age limit in days for usenet articles to be used. (eg. 500)</span>
</label>
</div>
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title">Ignore Words</span>
2014-10-21 19:09:01 +00:00
<input type="text" name="ignore_words" value=" $ sickbeard . IGNORE_WORDS " class="form-control input-sm input350" />
2014-03-10 05:18:05 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
<span class="component-desc">Comma separated words to check in episode search.</span>
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
<span class="component-desc">Results containing any word in the list won't be snatched.</span>
</label>
</div>
2014-10-05 15:10:43 +00:00
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-10-05 15:10:43 +00:00
<span class="component-title">Require Words</span>
2014-10-21 19:09:01 +00:00
<input type="text" name="require_words" value=" $ sickbeard . REQUIRE_WORDS " class="form-control input-sm input350" />
2014-10-05 15:10:43 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-10-05 15:10:43 +00:00
<span class="component-title"> </span>
<span class="component-desc">Comma separated words to check in episode search.</span>
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-10-05 15:10:43 +00:00
<span class="component-title"> </span>
<span class="component-desc">Results not containing all words in the list won't be snatched.</span>
</label>
</div>
2014-03-10 05:18:05 +00:00
<div class="field-pair">
<input type="checkbox" name="allow_high_priority" id="allow_high_priority" #if $ sickbeard . ALLOW_HIGH_PRIORITY == True then " checked= \" checked \" " else " " # />
2014-10-21 19:09:01 +00:00
<label for="allow_high_priority">
2014-03-10 05:18:05 +00:00
<span class="component-title">Allow high priority</span>
<span class="component-desc">Set high priority for downloads of recently aired episodes?</span>
</label>
</div>
2014-05-17 16:18:50 +00:00
<div class="field-pair">
<input type="checkbox" name="dailysearch_startup" id="dailysearch_startup" #if $ sickbeard . DAILYSEARCH_STARTUP == True then " checked= \" checked \" " else " " # />
2014-10-21 19:09:01 +00:00
<label for="dailysearch_startup">
2014-09-30 22:20:37 +00:00
<span class="component-title">Daily Search on startup</span>
2014-05-17 16:18:50 +00:00
<span class="component-desc">Start daily search upon startup of SickRage?</span>
</label>
2014-05-13 05:48:00 +00:00
</div>
2014-05-06 22:27:44 +00:00
<div class="field-pair">
<input type="checkbox" name="backlog_startup" id="backlog_startup" #if $ sickbeard . BACKLOG_STARTUP == True then " checked= \" checked \" " else " " # />
2014-10-21 19:09:01 +00:00
<label for="backlog_startup">
2014-09-30 22:20:37 +00:00
<span class="component-title">Process backlog on startup</span>
2014-05-13 05:48:00 +00:00
<span class="component-desc">Start processing backlogged episodes upon startup of SickRage?</span>
2014-05-06 22:27:44 +00:00
</label>
</div>
2014-03-10 05:18:05 +00:00
2014-10-21 19:09:01 +00:00
<input type="submit" class="btn config_submitter" value="Save Changes" />
2014-03-10 05:18:05 +00:00
</fieldset>
</div><!-- /component-group1 //-->
2014-10-21 19:09:01 +00:00
<div id="core-component-group2" class="component-group">
2014-03-10 05:18:05 +00:00
<div class="component-group-desc">
<h3>NZB Search</h3>
2014-05-23 12:37:22 +00:00
<p>Settings that dictate how SickRage handles NZB search results.</p>
2014-03-10 05:18:05 +00:00
</div>
<fieldset class="component-group-list">
<div class="field-pair">
<input type="checkbox" name="use_nzbs" class="enabler" id="use_nzbs" #if $ sickbeard . USE_NZBS then " checked= \" checked \" " else " " # />
2014-10-21 19:09:01 +00:00
<label for="use_nzbs">
2014-03-10 05:18:05 +00:00
<span class="component-title">Search NZBs</span>
2014-05-23 12:37:22 +00:00
<span class="component-desc">Should SickRage search for NZB files?</span>
2014-03-10 05:18:05 +00:00
</label>
</div>
<div id="content_use_nzbs">
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck" for="nzb_method">
<span class="component-title">NZB Method:</span>
2014-03-10 05:18:05 +00:00
<span class="component-desc">
2014-10-21 19:09:01 +00:00
<select name="nzb_method" id="nzb_method" class="form-control input-sm">
2014-03-10 05:18:05 +00:00
#set $ nzb_method_text = { ' blackhole ' : " Black hole " , ' sabnzbd ' : " SABnzbd " , ' nzbget ' : " NZBget " }
#for $ curAction in ( ' sabnzbd ' , ' blackhole ' , ' nzbget ' ) :
#if $ sickbeard . NZB_METHOD == $ curAction :
#set $ nzb_method = " selected= \" selected \" "
#else
#set $ nzb_method = " "
#end if
<option value=" $ curAction " $ nzb_method > $ nzb_method_text [ $ curAction ]</option>
#end for
</select>
</span>
</label>
</div>
<div id="blackhole_settings">
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title">NZB Black Hole</span>
2014-10-21 19:09:01 +00:00
<input type="text" name="nzb_dir" id="nzb_dir" value=" $ sickbeard . NZB_DIR " class="form-control input-sm input350" />
2014-03-10 05:18:05 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
2014-05-23 12:37:22 +00:00
<span class="component-desc">The directory where SickRage should store your <i>NZB</i> files.</span>
2014-03-10 05:18:05 +00:00
</label>
</div>
</div>
<div id="sabnzbd_settings">
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title">SABnzbd URL</span>
2014-10-21 19:09:01 +00:00
<input type="text" id="sab_host" name="sab_host" value=" $ sickbeard . SAB_HOST " class="form-control input-sm input350" />
2014-03-10 05:18:05 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
<span class="component-desc">URL to your SABnzbd+ install</span>
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
<span class="component-desc">(eg. http://localhost:8000/)</span>
</label>
</div>
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title">SABnzbd Username</span>
2014-10-21 19:09:01 +00:00
<input type="text" name="sab_username" id="sab_username" value=" $ sickbeard . SAB_USERNAME " class="form-control input-sm input200" />
2014-03-10 05:18:05 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
<span class="component-desc">Username of your SABnzbd+ server (blank for none)</span>
</label>
</div>
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title">SABnzbd Password</span>
2014-10-21 19:09:01 +00:00
<input type="password" name="sab_password" id="sab_password" value=" $ sickbeard . SAB_PASSWORD " class="form-control input-sm input200" />
2014-03-10 05:18:05 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
<span class="component-desc">Password of your SABnzbd+ server (blank for none)</span>
</label>
</div>
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title">SABnzbd API Key</span>
2014-10-21 19:09:01 +00:00
<input type="text" name="sab_apikey" id="sab_apikey" value=" $ sickbeard . SAB_APIKEY " class="form-control input-sm input350" />
2014-03-10 05:18:05 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
<span class="component-desc">SABnzbd+ Config -> General -> API Key.</span>
</label>
</div>
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title">SABnzbd Category</span>
2014-10-21 19:09:01 +00:00
<input type="text" name="sab_category" id="sab_category" value=" $ sickbeard . SAB_CATEGORY " class="form-control input-sm input200" />
2014-03-10 05:18:05 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
<span class="component-desc">Category for downloads to go into (eg. TV)</span>
</label>
</div>
</div>
<div id="nzbget_settings">
2014-05-05 22:48:28 +00:00
<div class="field-pair">
<input id="nzbget_use_https" type="checkbox" class="enabler" name="nzbget_use_https" #if $ sickbeard . NZBGET_USE_HTTPS == True then " checked= \" checked \" " else " " # />
2014-10-21 19:09:01 +00:00
<label for="use_failed_downloads">
2014-05-05 22:48:28 +00:00
<span class="component-title">Use HTTPS (SSL)</span>
<span class="component-desc">Use HTTPS to connect to NZBGet?</span>
</label>
<label class="nocheck clearfix" for="nzbget_use_https">
<span class="component-title"> </span>
<span class="component-desc"><b>NOTE:</b> You have to enable Secure control in NZBGet and set the correct Secure Port here.</span>
</label>
2014-10-21 19:09:01 +00:00
2014-05-05 22:48:28 +00:00
</div>
2014-03-10 05:18:05 +00:00
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title">NZBget HOST:PORT</span>
2014-10-21 19:09:01 +00:00
<input type="text" name="nzbget_host" id="nzbget_host" value=" $ sickbeard . NZBGET_HOST " class="form-control input-sm input350" />
2014-03-10 05:18:05 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
<span class="component-desc">Hostname and portnumber of the NZBget RPC (not NZBgetweb!)</span>
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
<span class="component-desc">(eg. localhost:6789)</span>
</label>
</div>
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title">NZBget Username</span>
2014-10-21 19:09:01 +00:00
<input type="text" name="nzbget_username" value=" $ sickbeard . NZBGET_USERNAME " class="form-control input-sm input200" />
2014-03-10 05:18:05 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
<span class="component-desc">Username found in nzbget.conf (by default nzbget)</span>
</label>
</div>
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title">NZBget Password</span>
2014-10-21 19:09:01 +00:00
<input type="password" name="nzbget_password" id="nzbget_password" value=" $ sickbeard . NZBGET_PASSWORD " class="form-control input-sm input200" />
2014-03-10 05:18:05 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
<span class="component-desc">Password found in nzbget.conf (by default tegbzn6789)</span>
</label>
</div>
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title">NZBget Category</span>
2014-10-21 19:09:01 +00:00
<input type="text" name="nzbget_category" id="nzbget_category" value=" $ sickbeard . NZBGET_CATEGORY " class="form-control input-sm input200" />
2014-03-10 05:18:05 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
<span class="component-desc">Category for downloads to go into (eg. TV)</span>
</label>
</div>
2014-09-30 22:20:37 +00:00
#if $ sickbeard . NZBGET_PRIORITY == - 100 :
#set $ prio_verylow = ' selected= " selected " '
#set $ prio_low = ' '
#set $ prio_normal = ' '
#set $ prio_high = ' '
#set $ prio_veryhigh = ' '
#set $ prio_force = ' '
#elif $ sickbeard . NZBGET_PRIORITY == - 50 :
#set $ prio_verylow = ' '
#set $ prio_low = ' selected= " selected " '
#set $ prio_normal = ' '
#set $ prio_high = ' '
#set $ prio_veryhigh = ' '
#set $ prio_force = ' '
#elif $ sickbeard . NZBGET_PRIORITY == 0 :
#set $ prio_verylow = ' '
#set $ prio_low = ' '
#set $ prio_normal = ' selected= " selected " '
#set $ prio_high = ' '
#set $ prio_veryhigh = ' '
#set $ prio_force = ' '
#elif $ sickbeard . NZBGET_PRIORITY == 50 :
#set $ prio_verylow = ' '
#set $ prio_low = ' '
#set $ prio_normal = ' '
#set $ prio_high = ' selected= " selected " '
#set $ prio_veryhigh = ' '
#set $ prio_force = ' '
#elif $ sickbeard . NZBGET_PRIORITY == 100 :
#set $ prio_verylow = ' '
#set $ prio_low = ' '
#set $ prio_normal = ' '
#set $ prio_high = ' '
#set $ prio_veryhigh = ' selected= " selected " '
#set $ prio_force = ' '
#elif $ sickbeard . NZBGET_PRIORITY == 900 :
#set $ prio_verylow = ' '
#set $ prio_low = ' '
#set $ prio_normal = ' '
#set $ prio_high = ' '
#set $ prio_veryhigh = ' '
#set $ prio_force = ' selected= " selected " '
#else :
#set $ prio_verylow = ' '
#set $ prio_low = ' '
#set $ prio_normal = ' selected= " selected " '
#set $ prio_high = ' '
#set $ prio_veryhigh = ' '
#set $ prio_force = ' '
#end if
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-09-30 22:20:37 +00:00
<span class="component-title">NZBget Priority</span>
2014-10-21 19:09:01 +00:00
<select name="nzbget_priority" id="nzbget_priority" class="form-control input-sm">
2014-09-30 22:20:37 +00:00
<option value="-100" ${ prio_verylow } >Very Low</option>
<option value="-50" ${ prio_low } >Low</option>
<option value="0" ${ prio_normal } >Normal</option>
<option value="50" ${ prio_high } >High</option>
<option value="100" ${ prio_veryhigh } >Very High</option>
<option value="900" ${ prio_force } >Force</option>
</select>
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-09-30 22:20:37 +00:00
<span class="component-title"> </span>
<span class="component-desc">Priority for daily snatches (no backlog)</span>
</label>
</div>
</div>
2014-03-10 05:18:05 +00:00
2014-10-21 19:09:01 +00:00
<div></div>
2014-03-10 05:18:05 +00:00
<div class="testNotification" id="testSABnzbd-result">Click below to test.</div>
<input class="btn" type="button" value="Test SABnzbd" id="testSABnzbd" class="btn test-button"/>
<input type="submit" class="btn config_submitter" value="Save Changes" /><br/>
</div><!-- /content_use_nzbs //-->
</fieldset>
</div><!-- /component-group2 //-->
2014-10-21 19:09:01 +00:00
<div id="core-component-group3" class="component-group">
2014-03-10 05:18:05 +00:00
<div class="component-group-desc">
<h3>Torrent Search</h3>
2014-05-23 12:37:22 +00:00
<p>Settings that dictate how SickRage handles Torrent search results.</p>
2014-03-10 05:18:05 +00:00
</div>
<fieldset class="component-group-list">
<div class="field-pair">
<input type="checkbox" name="use_torrents" class="enabler" id="use_torrents" #if $ sickbeard . USE_TORRENTS == True then " checked= \" checked \" " else " " # />
2014-10-21 19:09:01 +00:00
<label for="use_torrents">
2014-03-10 05:18:05 +00:00
<span class="component-title">Search Torrents</span>
2014-05-23 12:37:22 +00:00
<span class="component-desc">Should SickRage search for torrent files?</span>
2014-03-10 05:18:05 +00:00
</label>
</div>
<div id="content_use_torrents">
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck" for="torrent_method">
<span class="component-title">TORRENT Method</span>
2014-03-10 05:18:05 +00:00
<span class="component-desc">
2014-10-21 19:09:01 +00:00
<select name="torrent_method" id="torrent_method" class="form-control input-sm">
2014-03-10 05:18:05 +00:00
#set $ torrent_method_text = { ' blackhole ' : " Black hole " , ' utorrent ' : " uTorrent " , ' transmission ' : " Transmission " , ' deluge ' : " Deluge " , ' download_station ' : " Synology DS " , ' rtorrent ' : " rTorrent " }
#for $ curAction in ( ' blackhole ' , ' utorrent ' , ' transmission ' , ' deluge ' , ' download_station ' , ' rtorrent ' ) :
#if $ sickbeard . TORRENT_METHOD == $ curAction :
#set $ torrent_method = " selected= \" selected \" "
#else
#set $ torrent_method = " "
#end if
<option value=" $ curAction " $ torrent_method > $ torrent_method_text [ $ curAction ]</option>
#end for
</select>
</label>
<div id="t_blackhole_settings">
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title">TORRENT Black Hole</span>
2014-10-21 19:09:01 +00:00
<input type="text" name="torrent_dir" id="torrent_dir" value=" $ sickbeard . TORRENT_DIR " class="form-control input-sm input350" />
2014-03-10 05:18:05 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
2014-05-23 12:37:22 +00:00
<span class="component-desc">The directory where SickRage should store your <i>Torrent</i> files.</span>
2014-03-10 05:18:05 +00:00
</label>
</div>
2014-10-21 19:09:01 +00:00
<div></div>
2014-03-10 05:18:05 +00:00
<input type="submit" class="btn config_submitter" value="Save Changes" /><br/>
</div><!-- /content_use_torrents //-->
</div>
<div id="torrent_settings">
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title" id="host_desc">Torrent HOST</span>
2014-10-21 19:09:01 +00:00
<input type="text" name="torrent_host" id="torrent_host" value=" $ sickbeard . TORRENT_HOST " class="form-control input-sm input350" />
2014-03-10 05:18:05 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
<span class="component-desc">URL to your Torrent Client (eg. http://localhost:8000/)</span>
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
<span class="component-desc"><b>Note:</b> <i>rTorrent</i> users need to use scgi://localhost:5000/</span>
</label>
</div>
2014-05-11 07:31:38 +00:00
<div class="field-pair" id="Torrent_Verify_Cert">
<input type="checkbox" name="torrent_verify_cert" class="enabler" id="torrent_verify_cert" #if $ sickbeard . TORRENT_VERIFY_CERT == True then " checked= \" checked \" " else " " # />
2014-10-21 19:09:01 +00:00
<label class="nocheck" for="torrent_verify_cert">
2014-05-11 07:31:38 +00:00
<span class="component-title" id="torrent_verify_cert_desc">Verify Certificate</span>
<span class="component-desc">Disable if you get "Deluge: Authentication Error" in your log</span>
</label>
</div>
2014-03-10 05:18:05 +00:00
<div class="field-pair" id="Torrent_username">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title" id="username_desc">Torrent Username</span>
2014-10-21 19:09:01 +00:00
<input type="text" name="torrent_username" id="torrent_username" value=" $ sickbeard . TORRENT_USERNAME " class="form-control input-sm input200" />
2014-03-10 05:18:05 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
<span class="component-desc">Username of your Torrent Client (blank for none)</span>
</label>
</div>
<div class="field-pair">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title" id="password_desc">Torrent Password</span>
2014-10-21 19:09:01 +00:00
<input type="password" name="torrent_password" id="torrent_password" value=" $ sickbeard . TORRENT_PASSWORD " class="form-control input-sm input200" />
2014-03-10 05:18:05 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
<span class="component-desc">Password of your Torrent Client (blank for none)</span>
</label>
</div>
<div class="field-pair" id="Torrent_Label">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title" id="label_desc">Torrent Label</span>
2014-10-21 19:09:01 +00:00
<input type="text" name="torrent_label" id="torrent_label" value=" $ sickbeard . TORRENT_LABEL " class="form-control input-sm input200" />
2014-03-10 05:18:05 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
<span class="component-desc">Add a specific label to Torrent</span>
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck" id="label_warning">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
2014-05-08 22:28:28 +00:00
<span class="component-desc"><b>Note:</b> Adds specific warning to Torrent label</span>
2014-03-10 05:18:05 +00:00
</label>
</div>
<div class="field-pair" id="Torrent_Path">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title" id="directory_desc">Torrent Directory</span>
2014-10-21 19:09:01 +00:00
<input type="text" name="torrent_path" id="torrent_path" value=" $ sickbeard . TORRENT_PATH " class="form-control input-sm input350" />
2014-03-10 05:18:05 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title"> </span>
<span class="component-desc">Where should it save the downloaded files? (blank for default)</span>
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-06-08 23:01:47 +00:00
<span class="component-title"> </span>
<span class="component-desc"><b>Note:</b> For Synology DS the destination has to be a shared folder</span>
</label>
2014-03-10 05:18:05 +00:00
</div>
2014-04-28 14:56:39 +00:00
<div class="field-pair" id="Torrent_Seed_Time">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-04-28 14:34:27 +00:00
<span class="component-title" id="torrent_seed_time_desc">Seed Time</span>
2014-10-21 19:09:01 +00:00
<input type="number" step="0.1" name="torrent_seed_time" id="torrent_seed_time" value=" $ sickbeard . TORRENT_SEED_TIME " class="form-control input-sm input100" />
2014-04-28 14:34:27 +00:00
</label>
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-04-28 14:34:27 +00:00
<span class="component-title"> </span>
2014-05-26 02:14:20 +00:00
<span class="component-desc">Duration (in hours) to seed for<br>
2014-10-07 20:39:11 +00:00
(SickRage default '0' passes blank to downloader; '-1' does not set Seed Time)</span>
2014-04-28 14:34:27 +00:00
</label>
</div>
2014-03-10 05:18:05 +00:00
<div class="field-pair" id="Torrent_Paused">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title" id="torrent_paused_desc">Start Torrent Paused</span>
2014-10-21 19:09:01 +00:00
<span class="component-desc"><input type="checkbox" name="torrent_paused" class="enabler" id="torrent_paused" #if $ sickbeard . TORRENT_PAUSED == True then " checked= \" checked \" " else " " # />Don't start downloading when torrent is added?</span>
2014-03-10 05:18:05 +00:00
</label>
</div>
<div class="field-pair" id="Torrent_High_Bandwidth">
2014-10-21 19:09:01 +00:00
<label class="nocheck">
2014-03-10 05:18:05 +00:00
<span class="component-title" id="torrent_high_bandwidth_desc">Allow high bandwidth</span>
2014-10-21 19:09:01 +00:00
<span class="component-desc"><input type="checkbox" name="torrent_high_bandwidth" class="enabler" id="torrent_high_bandwidth" #if $ sickbeard . TORRENT_HIGH_BANDWIDTH == True then " checked= \" checked \" " else " " # />Use high bandwidth allocation if priority is high?</span>
2014-03-10 05:18:05 +00:00
</label>
</div>
<div class="testNotification" id="testTorrent-result">Click below to test.</div>
<input class="btn" type="button" value="Test Connection" id="testTorrent" class="btn test-button"/>
<input type="submit" class="btn config_submitter" value="Save Changes" /><br/>
</div>
</div>
</fieldset>
</div><!-- /component-group3 //-->
2014-10-21 19:09:01 +00:00
<br/>
<h6 class="pull-right"><b>All non-absolute folder locations are relative to <span class="path"> $ sickbeard . DATA_DIR </span></b> </h6>
<input type="submit" class="btn pull-left config_submitter button" value="Save Changes" />
2014-03-10 05:18:05 +00:00
</div><!-- /config-components //-->
2014-10-21 19:09:01 +00:00
</form>
</div>
</div>
2014-03-10 05:18:05 +00:00
2014-10-21 19:09:01 +00:00
<div></div>
2014-03-10 05:18:05 +00:00
<script type="text/javascript" charset="utf-8">
<!--
jQuery(' #config - components ' ).tabs();
jQuery(' #nzb _dir ' ).fileBrowser( { title: ' Select NZB Black Hole / Watch Directory ' });
jQuery(' #torrent _dir ' ).fileBrowser( { title: ' Select Torrent Black Hole / Watch Directory ' });
jQuery(' #torrent _path ' ).fileBrowser( { title: ' Select Torrent Download Directory ' });
jQuery(' #tv _download_dir ' ).fileBrowser( { title: ' Select TV Download Directory ' });
//-->
</script>
#include $ os . path . join ( $ sickbeard . PROG_DIR , " gui/slick/interfaces/default/inc_bottom.tmpl " )