mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-17 06:45:05 -05:00
0d9fbc1ad7
This version of SickBeard uses both TVDB and TVRage to search and gather it's series data from allowing you to now have access to and download shows that you couldn't before because of being locked into only what TheTVDB had to offer. Also this edition is based off the code we used in our XEM editon so it does come with scene numbering support as well as all the other features our XEM edition has to offer. Please before using this with your existing database (sickbeard.db) please make a backup copy of it and delete any other database files such as cache.db and failed.db if present, we HIGHLY recommend starting out with no database files at all to make this a fresh start but the choice is at your own risk! Enjoy!
456 lines
28 KiB
Cheetah
456 lines
28 KiB
Cheetah
#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>
|
|
#if $varExists('header')
|
|
<h1 class="header">$header</h1>
|
|
#else
|
|
<h1 class="title">$title</h1>
|
|
#end if
|
|
<div id="config">
|
|
<div id="config-content">
|
|
|
|
<form id="configForm" action="saveSearch" method="post">
|
|
|
|
<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>
|
|
|
|
|
|
<div id="core-component-group1" class="component-group clearfix">
|
|
|
|
<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">
|
|
<input type="checkbox" name="download_propers" id="download_propers" #if $sickbeard.DOWNLOAD_PROPERS == True then "checked=\"checked\"" else ""# />
|
|
<label class="clearfix" for="download_propers">
|
|
<span class="component-title">Download Propers</span>
|
|
<span class="component-desc">Replace original download with "Proper/Repack" if nuked?</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="field-pair">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title">Search Frequency</span>
|
|
<input type="text" name="search_frequency" value="$sickbeard.SEARCH_FREQUENCY" size="5" />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">Time in minutes between searches (eg. 60)</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="field-pair">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title">Usenet Retention</span>
|
|
<input type="text" name="usenet_retention" value="$sickbeard.USENET_RETENTION" size="5" />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<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">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title">Ignore Words</span>
|
|
<input type="text" name="ignore_words" value="$sickbeard.IGNORE_WORDS" size="45" />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">Comma separated words to check in episode search.</span>
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">Results containing any word in the list won't be snatched.</span>
|
|
</label>
|
|
</div>
|
|
|
|
<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 ""# />
|
|
<label class="clearfix" for="allow_high_priority">
|
|
<span class="component-title">Allow high priority</span>
|
|
<span class="component-desc">Set high priority for downloads of recently aired episodes?</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
|
<input type="submit" class="btn config_submitter" value="Save Changes" /><br/>
|
|
|
|
</fieldset>
|
|
</div><!-- /component-group1 //-->
|
|
|
|
<div id="core-component-group2" class="component-group clearfix">
|
|
|
|
<div class="component-group-desc">
|
|
<h3>NZB Search</h3>
|
|
<p>Settings that dictate how Sick Beard handles NZB search results.</p>
|
|
</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 ""# />
|
|
<label class="clearfix" for="use_nzbs">
|
|
<span class="component-title">Search NZBs</span>
|
|
<span class="component-desc">Should Sick Beard search for NZB files?</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div id="content_use_nzbs">
|
|
<div class="field-pair">
|
|
<label class="clearfix" for="nzb_method">
|
|
<span class="component-title jumbo">NZB Method:</span>
|
|
<span class="component-desc">
|
|
<select name="nzb_method" id="nzb_method">
|
|
#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">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title">NZB Black Hole</span>
|
|
<input type="text" name="nzb_dir" id="nzb_dir" value="$sickbeard.NZB_DIR" size="35" />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">The directory where Sick Beard should store your <i>NZB</i> files.</span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="sabnzbd_settings">
|
|
<div class="field-pair">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title">SABnzbd URL</span>
|
|
<input type="text" id="sab_host" name="sab_host" value="$sickbeard.SAB_HOST" size="45" />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">URL to your SABnzbd+ install</span>
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">(eg. http://localhost:8000/)</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="field-pair">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title">SABnzbd Username</span>
|
|
<input type="text" name="sab_username" id="sab_username" value="$sickbeard.SAB_USERNAME" size="20" />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">Username of your SABnzbd+ server (blank for none)</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="field-pair">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title">SABnzbd Password</span>
|
|
<input type="password" name="sab_password" id="sab_password" value="$sickbeard.SAB_PASSWORD" size="20" />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">Password of your SABnzbd+ server (blank for none)</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="field-pair">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title">SABnzbd API Key</span>
|
|
<input type="text" name="sab_apikey" id="sab_apikey" value="$sickbeard.SAB_APIKEY" size="45" />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">SABnzbd+ Config -> General -> API Key.</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="field-pair">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title">SABnzbd Category</span>
|
|
<input type="text" name="sab_category" id="sab_category" value="$sickbeard.SAB_CATEGORY" size="20" />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<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">
|
|
<div class="field-pair">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title">NZBget HOST:PORT</span>
|
|
<input type="text" name="nzbget_host" id="nzbget_host" value="$sickbeard.NZBGET_HOST" size="45" />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">Hostname and portnumber of the NZBget RPC (not NZBgetweb!)</span>
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">(eg. localhost:6789)</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="field-pair">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title">NZBget Username</span>
|
|
<input type="text" name="nzbget_username" value="$sickbeard.NZBGET_USERNAME" size="20" />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">Username found in nzbget.conf (by default nzbget)</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="field-pair">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title">NZBget Password</span>
|
|
<input type="password" name="nzbget_password" id="nzbget_password" value="$sickbeard.NZBGET_PASSWORD" size="20" />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">Password found in nzbget.conf (by default tegbzn6789)</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="field-pair">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title">NZBget Category</span>
|
|
<input type="text" name="nzbget_category" id="nzbget_category" value="$sickbeard.NZBGET_CATEGORY" size="20" />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">Category for downloads to go into (eg. TV)</span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
<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 //-->
|
|
|
|
<div id="core-component-group3" class="component-group clearfix">
|
|
|
|
<div class="component-group-desc">
|
|
<h3>Torrent Search</h3>
|
|
<p>Settings that dictate how Sick Beard handles Torrent search results.</p>
|
|
</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 ""# />
|
|
<label class="clearfix" for="use_torrents">
|
|
<span class="component-title">Search Torrents</span>
|
|
<span class="component-desc">Should Sick Beard search for torrent files?</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div id="content_use_torrents">
|
|
<div class="field-pair">
|
|
<label class="clearfix" for="torrent_method">
|
|
<span class="component-title jumbo">TORRENT Method</span>
|
|
<span class="component-desc">
|
|
<select name="torrent_method" id="torrent_method">
|
|
#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">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title">TORRENT Black Hole</span>
|
|
<input type="text" name="torrent_dir" id="torrent_dir" value="$sickbeard.TORRENT_DIR" size="35" />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">The directory where Sick Beard should store your <i>Torrent</i> files.</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="clearfix"></div>
|
|
<input type="submit" class="btn config_submitter" value="Save Changes" /><br/>
|
|
</div><!-- /content_use_torrents //-->
|
|
</div>
|
|
|
|
<div id="torrent_settings">
|
|
<div class="field-pair">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title" id="host_desc">Torrent HOST</span>
|
|
<input type="text" name="torrent_host" id="torrent_host" value="$sickbeard.TORRENT_HOST" size="45" />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">URL to your Torrent Client (eg. http://localhost:8000/)</span>
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<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>
|
|
|
|
<div class="field-pair" id="Torrent_username">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title" id="username_desc">Torrent Username</span>
|
|
<input type="text" name="torrent_username" id="torrent_username" value="$sickbeard.TORRENT_USERNAME" size="20" />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">Username of your Torrent Client (blank for none)</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="field-pair">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title" id="password_desc">Torrent Password</span>
|
|
<input type="password" name="torrent_password" id="torrent_password" value="$sickbeard.TORRENT_PASSWORD" size="20" />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<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">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title" id="label_desc">Torrent Label</span>
|
|
<input type="text" name="torrent_label" id="torrent_label" value="$sickbeard.TORRENT_LABEL" size="20" />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">Add a specific label to Torrent</span>
|
|
</label>
|
|
<label class="nocheck clearfix" id="deluge_label_warning">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc"><b>Note:</b> Label plugin must be enabled in Deluge client</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="field-pair" id="Torrent_Path">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title" id="directory_desc">Torrent Directory</span>
|
|
<input type="text" name="torrent_path" id="torrent_path" value="$sickbeard.TORRENT_PATH" size="35" />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">Where should it save the downloaded files? (blank for default)</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="field-pair" id="Torrent_Ratio">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title" id="torrent_ratio_desc">Torrent Ratio</span>
|
|
<input type="number" step="0.1" name="torrent_ratio" id="torrent_ratio" value="$sickbeard.TORRENT_RATIO" size="2" />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">Stop transfer when reaching ratio (blank for default)</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="field-pair" id="Torrent_Paused">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title" id="torrent_paused_desc">Start Torrent Paused</span>
|
|
<input type="checkbox" name="torrent_paused" class="enabler" id="torrent_paused" #if $sickbeard.TORRENT_PAUSED == True then "checked=\"checked\"" else ""# />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">Don't start downloading when torrent is added?</span>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="field-pair" id="Torrent_High_Bandwidth">
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title" id="torrent_high_bandwidth_desc">Allow high bandwidth</span>
|
|
<input type="checkbox" name="torrent_high_bandwidth" class="enabler" id="torrent_high_bandwidth" #if $sickbeard.TORRENT_HIGH_BANDWIDTH == True then "checked=\"checked\"" else ""# />
|
|
</label>
|
|
<label class="nocheck clearfix">
|
|
<span class="component-title"> </span>
|
|
<span class="component-desc">Use high bandwidth allocation on torrent if priority is high (recently aired episode if enabled)?</span>
|
|
</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 //-->
|
|
|
|
<!--<div class="title-group clearfix" id="no-torrents">
|
|
<div class="ui-corner-all config_message">Note: Sick Beard works better with Usenet than with Torrents, <a href="http://www.sickbeard.com/usenet.html" target="_blank">here's why</a>.</div>
|
|
</div> //-->
|
|
|
|
<br/>
|
|
<small class="float-right"><b>All non-absolute folder locations are relative to <span class="path">$sickbeard.DATA_DIR</span></b> </small>
|
|
<input type="submit" class="btn config_submitter button" value="Save Changes" /><br/>
|
|
|
|
|
|
</div><!-- /config-components //-->
|
|
|
|
</form>
|
|
|
|
</div></div>
|
|
<div class="clearfix"></div>
|
|
|
|
<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")
|