2014-03-10 05:18:05 +00:00
#import sickbeard
#from sickbeard import clients
2015-02-24 13:37:27 +00:00
#from sickbeard . helpers import starify
2015-05-07 00:36:40 +00:00
##
2016-12-18 20:24:18 +00:00
#set global $ title = ' Config - Media Search '
2014-10-29 02:55:59 +00:00
#set global $ header = ' Search Settings '
#set global $ sbPath = ' ../.. '
#set global $ topmenu = ' config '
2015-05-07 00:36:40 +00:00
##
2014-03-10 05:18:05 +00:00
#import os . path
2014-10-29 02:55:59 +00:00
#include $ os . path . join ( $ sickbeard . PROG_DIR , ' gui/slick/interfaces/default/inc_top.tmpl ' )
2016-06-23 19:58:26 +00:00
<script>
<!--
var config = {defaultHost: $ clients . default_host }
//-->
</script>
2015-09-12 07:17:26 +00:00
<script type="text/javascript" src=" $ sbRoot /js/configSearch.js?v= $ sbPID "></script>
<script type="text/javascript" src=" $ sbRoot /js/config.js?v= $ sbPID "></script>
2014-10-21 19:09:01 +00:00
2014-10-29 02:55:59 +00:00
#if $ varExists ( ' header ' )
2014-03-10 05:18:05 +00:00
<h1 class="header"> $ header </h1>
2014-10-29 02:55:59 +00:00
#else
2014-03-10 05:18:05 +00:00
<h1 class="title"> $ title </h1>
#end if
2014-10-21 19:09:01 +00:00
2015-05-07 00:36:40 +00:00
##
2014-10-29 02:55:59 +00:00
#set $ html_selected = ' selected= " selected " '
2015-03-23 22:36:58 +00:00
#set $ html_checked = ' checked= " checked " '
2014-03-10 05:18:05 +00:00
<div id="config">
2015-03-24 18:11:51 +00:00
<div id="config-content" class="linefix">
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
2014-10-29 02:55:59 +00:00
<div id="config-components">
<ul>
2016-12-18 20:24:18 +00:00
<li><a href=" #core - component - group1 " >Media Search</a></li>
<li><a href=" #core - component - group2 " >NZB Results</a></li>
<li><a href=" #core - component - group3 " >Torrent Results</a></li>
2014-10-29 02:55:59 +00:00
</ul>
<div id="core-component-group1" class="component-group">
2014-05-14 22:23:59 +00:00
2014-10-29 02:55:59 +00:00
<div class="component-group-desc">
2016-12-18 20:24:18 +00:00
<h3>Media Search</h3>
2014-11-21 18:40:00 +00:00
<p>How to manage searching with <a href=" $ sbRoot /config/providers/">providers</a>.</p>
2014-10-29 02:55:59 +00:00
</div>
<fieldset class="component-group-list">
2014-10-21 19:09:01 +00:00
<div class="field-pair">
2014-10-29 02:55:59 +00:00
<label for="download_propers">
<span class="component-title">Download propers</span>
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="checkbox" name="download_propers" id="download_propers" class="enabler"<%= html_checked if sickbeard.DOWNLOAD_PROPERS == True else '' %>>
2016-10-26 00:36:13 +00:00
<p>replace original download with 'Proper' or 'Repack' if nuked</p>
2014-10-29 02:55:59 +00:00
</span>
</label>
</div>
<div id="content_download_propers">
2017-02-15 12:27:21 +00:00
<div class="field-pair">
<label>
<span class="component-title">Limit WebDL propers</span>
<span class="component-desc">
<input type="checkbox" name="propers_webdl_onegrp" #echo ( ' ' , $ html_checked ) [ $ sickbeard . PROPERS_WEBDL_ONEGRP ] # >
<p>Only allow WebDL 'Propers' from the original release group</p>
</span>
</label>
</div>
2014-09-30 22:20:37 +00:00
<div class="field-pair">
2014-10-29 02:55:59 +00:00
<label for="check_propers_interval">
2015-03-24 18:11:51 +00:00
<span class="component-title">Check propers every:</span>
2014-10-29 02:55:59 +00:00
<span class="component-desc">
<select id="check_propers_interval" name="check_propers_interval" class="form-control input-sm">
2016-04-29 19:15:34 +00:00
#for $ curKey , $ curText , $ void in $ propers_intervals :
<option value=" $ curKey " #echo ( ' ' , $ html_selected ) [ $ sickbeard . CHECK_PROPERS_INTERVAL == $ curKey ] # > $ curText </option>
2014-10-29 02:55:59 +00:00
#end for
</select>
</span>
</label>
</div>
</div>
<div class="field-pair">
<label>
2015-03-24 18:11:51 +00:00
<span class="component-title">Recent search frequency</span>
2014-10-29 02:55:59 +00:00
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="text" name="recentsearch_frequency" value=" $ sickbeard . RECENTSEARCH_FREQUENCY " class="form-control input-sm input75">
2015-03-24 18:11:51 +00:00
<p>minutes between checking recent updated shows (minimum $ sickbeard . MIN_RECENTSEARCH_FREQUENCY )</p>
Change validate and improve specific Torrent provider connections, IPT, KAT, SCC, TPB, TB, TD, TT.
Change refactor cache for torrent providers to reduce code.
Change improve search category selection BMTV, FSH, FF, TB.
Change identify more SD release qualities.
Change update SpeedCD, MoreThan, TVChaosuk.
Add torrent provider HD4Free.
Remove torrent provider BitSoup.
Change only create threads for providers needing a recent search instead of for all enabled.
Add 4489 as experimental value to "Recent search frequency" to use provider freqs instead of fixed width for all.
Fix searching nzb season packs.
Change remove some logging cruft.
2016-03-24 18:24:14 +00:00
<p><em class="grey-text">enter 4489 for experimental internal provider frequencies</em></p>
2014-10-29 02:55:59 +00:00
</span>
</label>
</div>
<div class="field-pair">
<label>
2015-03-24 18:11:51 +00:00
<span class="component-title">Limited backlog search</span>
2014-10-29 02:55:59 +00:00
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="text" name="backlog_days" value=" $ sickbeard . BACKLOG_DAYS " class="form-control input-sm input75">
<p>day(s) that the limited search will cover (e.g. 7)</p>
2014-10-29 02:55:59 +00:00
</span>
</label>
</div>
<div class="field-pair">
2016-10-26 00:36:13 +00:00
<label for="backlog_nofull">
<span class="component-title">Disable auto full backlog</span>
<span class="component-desc">
<input type="checkbox" name="backlog_nofull" id="backlog_nofull" class="enabler viewIf"<%= html_checked if sickbeard.BACKLOG_NOFULL == True else '' %>>
<p>backlog search manually by setting episodes 'Wanted' or via 'Backlog overview'</p>
</span>
</label>
</div>
<div class="field-pair" id="content_backlog_nofull">
<label>
2016-10-26 13:34:36 +00:00
<span class="component-title"><em class="grey-text">Backlog search spread</em></span>
2016-10-26 00:36:13 +00:00
<span class="component-desc">
2016-10-26 13:34:36 +00:00
<p><em class="grey-text">to access this setting, unselect "<span class="boldest">Disable auto full backlog</span>" search above</em></p>
2016-10-26 00:36:13 +00:00
</span>
</label>
</div>
<div class="field-pair hide_if_backlog_nofull">
2014-10-29 02:55:59 +00:00
<label>
2016-09-04 20:00:44 +00:00
<span class="component-title">Backlog search spread</span>
2014-10-29 02:55:59 +00:00
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="text" name="backlog_frequency" value=" $ sickbeard . BACKLOG_FREQUENCY " class="form-control input-sm input75">
2016-09-04 20:00:44 +00:00
<p>days to spread full backlog searches over (min $ sickbeard . MIN_BACKLOG_FREQUENCY , default $ sickbeard . DEFAULT_BACKLOG_FREQUENCY , max $ sickbeard . MAX_BACKLOG_FREQUENCY )</p>
2015-03-23 22:36:58 +00:00
</span>
2014-10-29 02:55:59 +00:00
</label>
</div>
2016-11-20 02:23:37 +00:00
#if $ sickbeard . USE_NZBS
2014-10-29 02:55:59 +00:00
<div class="field-pair">
<label>
2015-03-24 18:11:51 +00:00
<span class="component-title">Usenet retention</span>
2014-10-29 02:55:59 +00:00
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="text" name="usenet_retention" value=" $ sickbeard . USENET_RETENTION " class="form-control input-sm input75">
2014-10-29 02:55:59 +00:00
<p>age limit in days for usenet articles to be used (e.g. 500)</p>
</span>
</label>
</div>
2016-11-20 02:23:37 +00:00
#else
<input type="hidden" name="usenet_retention" value=" $ sickbeard . USENET_RETENTION " class="form-control input-sm input75">
#end if
2014-10-29 02:55:59 +00:00
<div class="field-pair">
<label>
2015-03-24 18:11:51 +00:00
<span class="component-title">Ignore result with any word</span>
2014-10-29 02:55:59 +00:00
<span class="component-desc">
2016-10-26 00:36:13 +00:00
<input type="text" name="ignore_words" value=" $ sickbeard . IGNORE_WORDS " class="form-control input-sm input350"><p>(opt: start 'regex:')</p>
2015-03-24 18:11:51 +00:00
<p class="clear-left note">ignore search result <em class="grey-text">if its title contains any</em> of these comma seperated words</p>
2014-10-29 02:55:59 +00:00
</span>
2015-09-18 00:06:34 +00:00
<span class="component-title">Shows with custom ignores</span>
<span class="component-desc">
#set $ shows = [ ]
#for $ show in $ using_rls_ignore_words
2016-09-04 20:00:44 +00:00
#set void = $ shows . append ( ' <a href= " %s /home/editShow?show= %s " style= " vertical-align:middle " > %s </a> ' % ( $ sbRoot , $ show [ 0 ] , $ show [ 1 ] ) )
2015-09-18 00:06:34 +00:00
#end for
#if len ( $ using_rls_ignore_words )
<p style="line-height:1.2em;margin-top:6px"> #echo ' , ' . join ( $ shows ) # </p>
#else
<p style="line-height:1.2em;margin-top:7px">...will list here when in use</p>
#end if
</span>
2014-10-29 02:55:59 +00:00
</label>
</div>
<div class="field-pair">
<label>
2015-09-18 00:06:34 +00:00
<span class="component-title">Require all these words</span>
2014-10-29 02:55:59 +00:00
<span class="component-desc">
2016-10-26 00:36:13 +00:00
<input type="text" name="require_words" value=" $ sickbeard . REQUIRE_WORDS " class="form-control input-sm input350"><p>(opt: start 'regex:')</p>
2015-09-18 00:06:34 +00:00
<p class="clear-left note">ignore search result <em class="grey-text">unless its title contains all</em> of these comma seperated words</p>
</span>
<span class="component-title">Shows with custom requires</span>
<span class="component-desc">
#set $ shows = [ ]
#for $ show in $ using_rls_require_words
2016-09-04 20:00:44 +00:00
#set void = $ shows . append ( ' <a href= " %s /home/editShow?show= %s " style= " vertical-align:middle " > %s </a> ' % ( $ sbRoot , $ show [ 0 ] , $ show [ 1 ] ) )
2015-09-18 00:06:34 +00:00
#end for
#if len ( $ using_rls_require_words )
<p style="line-height:1.2em;margin-top:6px"> #echo ' , ' . join ( $ shows ) # </p>
#else
<p style="line-height:1.2em;margin-top:7px">...will list here when in use</p>
#end if
2014-10-29 02:55:59 +00:00
</span>
</label>
</div>
<div class="field-pair">
<label for="allow_high_priority">
<span class="component-title">Allow high priority</span>
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="checkbox" name="allow_high_priority" id="allow_high_priority"<%= html_checked if sickbeard.ALLOW_HIGH_PRIORITY == True else '' %>>
2014-10-29 02:55:59 +00:00
<p>set downloads of recently aired episodes to high priority</p>
</span>
</label>
</div>
2015-04-28 22:15:54 +00:00
<div class="field-pair">
<label for="search_unaired">
<span class="component-title">Unaired episodes</span>
<span class="component-desc">
<input type="checkbox" name="search_unaired" id="search_unaired" class="enabler"<%= html_checked if sickbeard.SEARCH_UNAIRED == True else '' %>>
2016-09-04 20:00:44 +00:00
<p>allow episodes that are released early (disable if getting fakes)</p>
2015-04-28 22:15:54 +00:00
</span>
</label>
</div>
2016-09-04 20:00:44 +00:00
<div id="content_search_unaired">
<div class="field-pair" style="margin-top:-24px">
<label for="unaired_recent_search_only">
<span class="component-desc">
<input type="checkbox" name="unaired_recent_search_only" id="unaired_recent_search_only" class="enabler"<%= html_checked if sickbeard.UNAIRED_RECENT_SEARCH_ONLY == False else '' %>>
<p>use specific server api requests to search for early episode releases</p>
</span>
</label>
</div>
</div>
2015-04-28 22:15:54 +00:00
2015-03-23 22:36:58 +00:00
<input type="submit" class="btn config_submitter" value="Save Changes">
2014-10-29 02:55:59 +00:00
</fieldset>
</div><!-- /component-group1 //-->
<div id="core-component-group2" class="component-group">
<div class="component-group-desc">
2016-12-18 20:24:18 +00:00
<h3>NZB Results</h3>
2014-10-29 02:55:59 +00:00
<p>How to handle NZB search results.</p>
</div>
<fieldset class="component-group-list">
<div class="field-pair">
<label for="use_nzbs">
<span class="component-title">Search NZBs</span>
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="checkbox" name="use_nzbs" class="enabler" id="use_nzbs"<%= html_checked if sickbeard.USE_NZBS else '' %>>
2016-12-18 20:24:18 +00:00
<p>enable NZB media providers</p></span>
2014-10-29 02:55:59 +00:00
</label>
</div>
<div id="content_use_nzbs">
<div class="field-pair">
<label for="nzb_method">
<span class="component-title">Send .nzb files to:</span>
<span class="component-desc">
<select name="nzb_method" id="nzb_method" class="form-control input-sm">
#set $ nzb_method_text = { ' blackhole ' : " Black hole " , ' sabnzbd ' : " SABnzbd " , ' nzbget ' : " NZBget " }
#for $ curAction in ( ' sabnzbd ' , ' blackhole ' , ' nzbget ' ) :
#set $ selected = $ html_selected if $ sickbeard . NZB_METHOD == $ curAction else ' '
<option value=" $ curAction " $ selected > $ nzb_method_text [ $ curAction ]</option>
#end for
2014-09-30 22:20:37 +00:00
</select>
2014-10-29 02:55:59 +00:00
</span>
</label>
</div>
2016-06-23 19:58:26 +00:00
<div id="blackhole-settings">
2014-10-29 02:55:59 +00:00
<div class="field-pair">
<label>
<span class="component-title">Black hole folder location</span>
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="text" name="nzb_dir" id="nzb_dir" value=" $ sickbeard . NZB_DIR " class="form-control input-sm input350">
2015-03-24 18:11:51 +00:00
<p class="clear-left note"><b>.nzb</b> files are stored at this location for external software to find and use</p>
2014-10-29 02:55:59 +00:00
</span>
2014-09-30 22:20:37 +00:00
</label>
2014-10-29 02:55:59 +00:00
</div>
</div>
2016-06-23 19:58:26 +00:00
<div id="sabnzbd-settings">
2014-10-29 02:55:59 +00:00
<div class="field-pair">
<label>
<span class="component-title">SABnzbd server URL</span>
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="text" id="sab_host" name="sab_host" value=" $ sickbeard . SAB_HOST " class="form-control input-sm input350">
2015-03-24 18:11:51 +00:00
<p class="clear-left note">URL to your SABnzbd server (e.g. http://localhost:8080/)</p>
2014-10-29 02:55:59 +00:00
</span>
</label>
</div>
<div class="field-pair">
<label>
<span class="component-title">SABnzbd username</span>
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="text" name="sab_username" id="sab_username" value=" $ sickbeard . SAB_USERNAME " class="form-control input-sm input200">
2014-10-29 02:55:59 +00:00
<p>(blank for none)</p>
</span>
</label>
</div>
<div class="field-pair">
<label>
<span class="component-title">SABnzbd password</span>
<span class="component-desc">
2016-11-19 03:19:57 +00:00
<input type="password" autocomplete="nope" name="sab_password" id="sab_password" value=" #echo ' * ' * len ( $ sickbeard . SAB_PASSWORD ) # " class="form-control input-sm input200">
2014-10-29 02:55:59 +00:00
<p>(blank for none)</p>
</span>
</label>
</div>
<div class="field-pair">
<label>
<span class="component-title">SABnzbd API key</span>
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="text" name="sab_apikey" id="sab_apikey" value="<%= starify(sickbeard.SAB_APIKEY) %>" class="form-control input-sm input350">
2015-03-24 18:11:51 +00:00
<p class="clear-left note">locate at... SABnzbd Config -> General -> API Key</p>
2014-10-29 02:55:59 +00:00
</span>
</label>
</div>
<div class="field-pair">
<label>
<span class="component-title">Use SABnzbd category</span>
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="text" name="sab_category" id="sab_category" value=" $ sickbeard . SAB_CATEGORY " class="form-control input-sm input200">
2014-10-29 02:55:59 +00:00
<p>add downloads to this category (e.g. TV)</p>
</span>
2014-09-30 22:20:37 +00:00
</label>
</div>
</div>
2014-10-29 02:55:59 +00:00
2016-06-23 19:58:26 +00:00
<div id="nzbget-settings">
2014-10-29 02:55:59 +00:00
<div class="field-pair">
<label for="nzbget_use_https">
<span class="component-title">Connect using HTTPS</span>
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input id="nzbget_use_https" type="checkbox" class="enabler" name="nzbget_use_https"<%= html_checked if sickbeard.NZBGET_USE_HTTPS == True else '' %>>
2014-10-29 02:55:59 +00:00
<p><b>note:</b> enable Secure control in NZBGet and set the correct Secure Port here</p>
</span>
</label>
</div>
<div class="field-pair">
<label>
<span class="component-title">NZBget host:port</span>
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="text" name="nzbget_host" id="nzbget_host" value=" $ sickbeard . NZBGET_HOST " class="form-control input-sm input350">
2014-10-29 02:55:59 +00:00
<p>(e.g. localhost:6789)</p>
2015-03-24 18:11:51 +00:00
<p class="clear-left note">NZBget RPC host name and port number (not NZBgetweb!)</p>
2014-10-29 02:55:59 +00:00
</span>
</label>
</div>
<div class="field-pair">
<label>
<span class="component-title">NZBget username</span>
<span class="component-desc">
2016-06-23 19:58:26 +00:00
<input type="text" name="nzbget_username" id="nzbget_username" value=" $ sickbeard . NZBGET_USERNAME " class="form-control input-sm input200">
2014-10-29 02:55:59 +00:00
<p>locate in nzbget.conf (default:nzbget)</p>
</span>
</label>
</div>
<div class="field-pair">
<label>
<span class="component-title">NZBget password</span>
<span class="component-desc">
2016-11-19 03:19:57 +00:00
<input type="password" autocomplete="nope" name="nzbget_password" id="nzbget_password" value=" #echo ' * ' * len ( $ sickbeard . NZBGET_PASSWORD ) # " class="form-control input-sm input200">
2014-10-29 02:55:59 +00:00
<p>locate in nzbget.conf (default:tegbzn6789)</p>
</span>
</label>
</div>
<div class="field-pair">
<label>
<span class="component-title">Use NZBget category</span>
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="text" name="nzbget_category" id="nzbget_category" value=" $ sickbeard . NZBGET_CATEGORY " class="form-control input-sm input200">
2014-10-29 02:55:59 +00:00
<p>send downloads marked this category (e.g. TV)</p>
</span>
</label>
</div>
#set $ prio_verylow = ' '
#set $ prio_low = ' '
#set $ prio_normal = ' '
#set $ prio_high = ' '
#set $ prio_veryhigh = ' '
#set $ prio_force = ' '
#if - 100 == $ sickbeard . NZBGET_PRIORITY :
#set $ prio_verylow = $ html_selected
#elif - 50 == $ sickbeard . NZBGET_PRIORITY :
#set $ prio_low = $ html_selected
#elif 0 == $ sickbeard . NZBGET_PRIORITY :
#set $ prio_normal = $ html_selected
#elif 50 == $ sickbeard . NZBGET_PRIORITY :
#set $ prio_high = $ html_selected
#elif 100 == $ sickbeard . NZBGET_PRIORITY :
#set $ prio_veryhigh = $ html_selected
#elif 900 == $ sickbeard . NZBGET_PRIORITY :
#set $ prio_force = $ html_selected
#else :
#set $ prio_normal = $ html_selected
#end if
<div class="field-pair">
<label>
<span class="component-title">NZBget priority</span>
<span class="component-desc">
<select name="nzbget_priority" id="nzbget_priority" class="form-control input-sm">
<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>
<span>priority for daily snatches (no backlog)</span>
</span>
</label>
</div>
</div>
2017-10-17 15:43:28 +00:00
<div class="test-notification" id="test-nzb-result">Click below to test</div>
2016-06-23 19:58:26 +00:00
<input type="button" value="Test SABnzbd" id="test_sabnzbd" class="btn test-button sabnzbd">
<input type="button" value="Test NZBget" id="test_nzbget" class="btn test-button nzbget">
2015-03-23 22:36:58 +00:00
<input type="submit" class="btn config_submitter" value="Save Changes"><br />
2014-10-29 02:55:59 +00:00
</div><!-- /content_use_nzbs //-->
</fieldset>
</div><!-- /component-group2 //-->
<div id="core-component-group3" class="component-group">
<div class="component-group-desc">
2016-12-18 20:24:18 +00:00
<h3>Torrent Results</h3>
2014-10-29 02:55:59 +00:00
<p>How to handle Torrent search results.</p>
</div>
<fieldset class="component-group-list">
<div class="field-pair">
<label for="use_torrents">
<span class="component-title">Search torrents</span>
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="checkbox" name="use_torrents" class="enabler" id="use_torrents"<%= html_checked if sickbeard.USE_TORRENTS == True else '' %>>
2016-12-18 20:24:18 +00:00
<p>enable torrent media providers</p>
2014-10-29 02:55:59 +00:00
</span>
</label>
</div>
<div id="content_use_torrents">
<div class="field-pair">
<label for="torrent_method">
<span class="component-title">Send .torrent files to:</span>
<span class="component-desc">
2016-06-23 19:58:26 +00:00
<select name="torrent_method" id="torrent_method" class="form-control input-sm">
#set $ torrent_method_text = { ' blackhole ' : " Black hole " , ' utorrent ' : " uTorrent " , ' transmission ' : " Transmission " , ' qbittorrent ' : " qBittorrent " , ' deluge ' : " Deluge " , ' download_station ' : " Synology DS " , ' rtorrent ' : " rTorrent " }
#for $ curAction in ( ' blackhole ' , ' deluge ' , ' qbittorrent ' , ' rtorrent ' , ' download_station ' , ' transmission ' , ' utorrent ' ) :
2014-10-29 02:55:59 +00:00
#set $ selected = $ html_selected if $ sickbeard . TORRENT_METHOD == $ curAction else ' '
2016-06-23 19:58:26 +00:00
<option value=" $ curAction " $ selected > $ torrent_method_text [ $ curAction ]</option>
2014-10-29 02:55:59 +00:00
#end for
2016-06-23 19:58:26 +00:00
</select>
</span>
2014-10-29 02:55:59 +00:00
</label>
2016-06-23 19:58:26 +00:00
<div id="options-torrent-blackhole">
2014-10-29 02:55:59 +00:00
<div class="field-pair">
<label>
<span class="component-title">Black hole folder location</span>
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="text" name="torrent_dir" id="torrent_dir" value=" $ sickbeard . TORRENT_DIR " class="form-control input-sm input350">
2015-03-24 18:11:51 +00:00
<p class="clear-left note"><b>.torrent</b> files are stored at this location for external software to find and use</p>
2014-10-29 02:55:59 +00:00
</span>
</label>
</div>
<div></div>
2015-03-23 22:36:58 +00:00
<input type="submit" class="btn config_submitter" value="Save Changes"><br />
2014-10-29 02:55:59 +00:00
</div>
</div>
2016-06-23 19:58:26 +00:00
<div id="options-torrent-clients">
2014-10-29 02:55:59 +00:00
<div class="field-pair">
<label>
2016-06-23 19:58:26 +00:00
<span class="component-title" id="host-title">Torrent host:port</span>
2014-10-29 02:55:59 +00:00
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="text" name="torrent_host" id="torrent_host" value=" $ sickbeard . TORRENT_HOST " class="form-control input-sm input350">
2015-03-24 18:11:51 +00:00
<p class="clear-left note">
2016-06-23 19:58:26 +00:00
<span id="host-desc-torrent">URL to your torrent client (e.g. <span class="default-host">http://localhost:8000</span>/)</span>
<span id="host-desc-deluge" style="display:none">URL to your Deluge WebUI (e.g. <span class="default-host">http://localhost:8112</span>/)</span>
<span id="host-desc-rtorrent" style="display:none"><b>Note:</b> <i>rTorrent</i> client URLs use e.g. <span class="default-host">scgi://localhost:5000</span>/</span>
2015-03-24 18:11:51 +00:00
</p>
2014-10-29 02:55:59 +00:00
</span>
</label>
</div>
2016-06-23 19:58:26 +00:00
<div class="field-pair" id="torrent-verify-cert-option">
2014-10-29 02:55:59 +00:00
<label for="torrent_verify_cert">
<span class="component-title">Verify certificate</span>
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="checkbox" name="torrent_verify_cert" class="enabler" id="torrent_verify_cert"<%= html_checked if sickbeard.TORRENT_VERIFY_CERT == True else '' %>>
2014-10-29 02:55:59 +00:00
<p>disable if you get "Deluge: Authentication Error" in your log</p>
</span>
</label>
</div>
2016-06-23 19:58:26 +00:00
<div class="field-pair" id="torrent-username-option">
2014-10-29 02:55:59 +00:00
<label>
2016-06-23 19:58:26 +00:00
<span class="component-title" id="username-title">Client username</span>
2014-10-29 02:55:59 +00:00
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="text" name="torrent_username" id="torrent_username" value=" $ sickbeard . TORRENT_USERNAME " class="form-control input-sm input200">
2014-10-29 02:55:59 +00:00
<p>(blank for none)</p>
</span>
</label>
</div>
<div class="field-pair">
<label>
2016-06-23 19:58:26 +00:00
<span class="component-title" id="password-title">Client password</span>
2014-10-29 02:55:59 +00:00
<span class="component-desc">
2016-11-19 03:19:57 +00:00
<input type="password" autocomplete="nope" name="torrent_password" id="torrent_password" value=" #echo ' * ' * len ( $ sickbeard . TORRENT_PASSWORD ) # " class="form-control input-sm input200">
2014-10-29 02:55:59 +00:00
<p>(blank for none)</p>
</span>
</label>
</div>
2016-06-23 19:58:26 +00:00
<div class="field-pair" id="torrent-label-option">
2014-10-29 02:55:59 +00:00
<label>
2016-06-23 19:58:26 +00:00
<span class="component-title">Set torrent label<span class="qbittorrent">/category</span></span>
2014-10-29 02:55:59 +00:00
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="text" name="torrent_label" id="torrent_label" value=" $ sickbeard . TORRENT_LABEL " class="form-control input-sm input200">
2016-06-23 19:58:26 +00:00
<span id="label-warning-deluge" style="display:none"><p>(blank spaces are not allowed)</p>
2015-03-24 18:11:51 +00:00
<p class="clear-left note">note: label plugin must be enabled in Deluge clients</p>
2014-10-29 02:55:59 +00:00
</span>
2016-06-23 19:58:26 +00:00
<span class="qbittorrent" style="display:none"><p>(qB 3.3.1 and newer clients)</p></span>
2014-10-29 02:55:59 +00:00
</span>
</label>
</div>
2016-06-23 19:58:26 +00:00
<div class="field-pair" id="torrent-path-option">
2014-10-29 02:55:59 +00:00
<label>
2016-06-23 19:58:26 +00:00
<span class="component-title">Downloaded files location</span>
2014-10-29 02:55:59 +00:00
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="text" name="torrent_path" id="torrent_path" value=" $ sickbeard . TORRENT_PATH " class="form-control input-sm input350">
2016-06-23 19:58:26 +00:00
<p class="clear-left note">
where <span id="torrent-client">the torrent client</span> will save files
<span class="qbittorrent">(blank otherwise set will ignore label/category)</span>
<span id="path-blank">(blank for client default)</span>
<span class="synology"> <b>note:</b> the destination has to be a shared folder for Synology DS</span>
<span class="transmission grey-text"> (v2.92 and newer should <em>not</em> be blank)</span>
</p>
2014-10-29 02:55:59 +00:00
</span>
</label>
</div>
2016-06-23 19:58:26 +00:00
<div class="field-pair" id="torrent-seed-time-option">
2014-10-29 02:55:59 +00:00
<label>
2015-09-12 17:06:54 +00:00
<span class="component-title">Seed time (minimum default)</span>
2015-03-23 22:36:58 +00:00
<span class="component-desc"><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">
2015-09-12 17:06:54 +00:00
<p>1 or more minutes. (0 or blank to use the client setting)</p></span>
2014-10-29 02:55:59 +00:00
</label>
</div>
2016-06-23 19:58:26 +00:00
<div class="field-pair" id="torrent-paused-option">
2014-10-29 02:55:59 +00:00
<label>
<span class="component-title">Start torrent paused</span>
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="checkbox" name="torrent_paused" class="enabler" id="torrent_paused"<%= html_checked if sickbeard.TORRENT_PAUSED == True else '' %>>
2014-10-29 02:55:59 +00:00
<p>add .torrent to client but do <b style="font-weight:900">not</b> start downloading</p>
</span>
</label>
</div>
2016-06-23 19:58:26 +00:00
<div class="field-pair" id="torrent-high-bandwidth-option">
2014-10-29 02:55:59 +00:00
<label>
<span class="component-title">Allow high bandwidth</span>
<span class="component-desc">
2015-03-23 22:36:58 +00:00
<input type="checkbox" name="torrent_high_bandwidth" class="enabler" id="torrent_high_bandwidth"<%= html_checked if sickbeard.TORRENT_HIGH_BANDWIDTH == True else '' %>>
2014-10-29 02:55:59 +00:00
<p>use high bandwidth allocation if priority is high</p>
</span>
</label>
</div>
2017-10-17 15:43:28 +00:00
<div class="test-notification" id="test-torrent-result">Click below to test</div>
2016-06-23 19:58:26 +00:00
<input type="button" value="Test Connection" id="test_torrent" class="btn test-button">
2015-03-23 22:36:58 +00:00
<input type="submit" class="btn config_submitter" value="Save Changes"><br />
2014-10-29 02:55:59 +00:00
</div>
</div><!-- /content_use_torrents //-->
</fieldset>
</div><!-- /component-group3 //-->
2015-03-23 22:36:58 +00:00
<br />
2014-10-21 19:09:01 +00:00
<h6 class="pull-right"><b>All non-absolute folder locations are relative to <span class="path"> $ sickbeard . DATA_DIR </span></b> </h6>
2015-03-23 22:36:58 +00:00
<input type="submit" class="btn pull-left config_submitter button" value="Save Changes">
2014-10-29 02:55:59 +00:00
</div><!-- /config-components //-->
2014-03-10 05:18:05 +00:00
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">
<!--
2016-09-04 20:00:44 +00:00
jQuery(' #config - components ' ).tabs();
jQuery(' #nzb _dir ' ).fileBrowser( { title: ' Select . nzb black hole / watch location ' });
jQuery(' #torrent _dir ' ).fileBrowser( { title: ' Select . torrent black hole / watch location ' });
jQuery(' #torrent _path ' ).fileBrowser( { title: ' Select . torrent download location ' });
jQuery(' #tv _download_dir ' ).fileBrowser( { title: ' Select TV download location ' });
2014-03-10 05:18:05 +00:00
//-->
</script>
2014-10-29 02:55:59 +00:00
#include $ os . path . join ( $ sickbeard . PROG_DIR , ' gui/slick/interfaces/default/inc_bottom.tmpl ' )