2014-03-10 01:18:05 -04:00
#import os . path
#import datetime
#import locale
#import sickbeard
#from sickbeard . common import *
#from sickbeard . sbdatetime import *
#from sickbeard import config
#from sickbeard import metadata
#from sickbeard . metadata . generic import GenericMetadata
#set global $ title = " Config - General "
#set global $ header = " General Configuration "
#set global $ sbPath = " ../.. "
#set global $ topmenu = " config " #
#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-05-01 20:57:51 -04:00
#set $ indexer = 0
#if $ sickbeard . INDEXER_DEFAULT
#set $ indexer = $ sickbeard . INDEXER_DEFAULT
#end if
2014-03-10 01:18:05 -04:00
<script type="text/javascript" src=" $ sbRoot /js/config.js? $ sbPID "></script>
2014-08-30 04:47:00 -04:00
<script type="text/javascript" src=" $ sbRoot /js/rootDirs.js? $ sbPID "></script>
2014-03-10 01:18:05 -04:00
<div id="config">
2014-10-21 15:09:01 -04:00
<div id="config-content">
2014-03-10 01:18:05 -04:00
2014-10-21 15:09:01 -04:00
<form id="configForm" action="saveGeneral" method="post">
2014-03-10 01:18:05 -04:00
<div id="config-components">
<ul>
<li><a href=" #core - component - group1 " >Misc</a></li>
<li><a href=" #core - component - group2 " >Web Interface</a></li>
<li><a href=" #core - component - group3 " >Date and Time</a></li>
2014-09-30 18:20:37 -04:00
<li><a href=" #core - component - group4 " >Advanced Settings</a></li>
2014-10-08 00:48:35 -04:00
<li><a href=" #core - component - group5 " >UI Theme Settings</a></li>
2014-03-10 01:18:05 -04:00
</ul>
2014-10-21 15:09:01 -04:00
<div id="core-component-group1" class="component-group">
2014-03-10 01:18:05 -04:00
<div class="component-group-desc">
<h3>Misc</h3>
<p>Startup options.</p>
<p><b>Some options may require a manual restart to take effect.</b></p>
</div>
2014-10-21 15:09:01 -04:00
<fieldset class="component-group-list">
2014-03-10 01:18:05 -04:00
<div class="field-pair">
<input type="checkbox" name="launch_browser" id="launch_browser" #if $ sickbeard . LAUNCH_BROWSER then " checked= \" checked \" " else " " # />
2014-10-21 15:09:01 -04:00
<label for="launch_browser">
2014-03-10 01:18:05 -04:00
<span class="component-title">Launch Browser</span>
2014-05-23 08:37:22 -04:00
<span class="component-desc">Should SickRage open its home page when started?</span>
2014-03-10 01:18:05 -04:00
</label>
</div>
<div class="field-pair">
<input type="checkbox" name="update_shows_on_start" id="update_shows_on_start" #if $ sickbeard . UPDATE_SHOWS_ON_START then " checked= \" checked \" " else " " # />
2014-10-21 15:09:01 -04:00
<label for="update_shows_on_start">
2014-03-10 01:18:05 -04:00
<span class="component-title">Update Shows on Start</span>
2014-05-23 08:37:22 -04:00
<span class="component-desc">Should SickRage update shows info when started?</span>
2014-03-10 01:18:05 -04:00
</label>
</div>
<div class="field-pair">
<input type="checkbox" name="version_notify" id="version_notify" #if $ sickbeard . VERSION_NOTIFY then " checked= \" checked \" " else " " # />
2014-10-21 15:09:01 -04:00
<label for="version_notify">
2014-03-10 01:18:05 -04:00
<span class="component-title">Check for Update</span>
2014-05-23 08:37:22 -04:00
<span class="component-desc">Show notification about updates for SickRage if available.</span>
2014-03-10 01:18:05 -04:00
</label>
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-03-10 01:18:05 -04:00
<span class="component-title"> </span>
2014-04-26 17:24:29 -04:00
<span class="component-desc">Checking for updates runs on startup and on the interval specified below.</span>
</label>
</div>
<div class="field-pair">
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-04-26 17:24:29 -04:00
<span class="component-title">Update Frequency</span>
2014-10-21 15:09:01 -04:00
<input type="text" name="update_frequency" id="update_frequency" value=" $ sickbeard . UPDATE_FREQUENCY " class="form-control input-sm input75" />
2014-04-26 17:24:29 -04:00
</label>
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-04-26 17:24:29 -04:00
<span class="component-title"> </span>
<span class="component-desc">Time in hours to check for software updates (eg. 12)</span>
</label>
</div>
2014-03-10 01:18:05 -04:00
<div class="field-pair">
2014-04-23 03:12:51 -04:00
<input type="checkbox" name="auto_update" id="auto_update" #if $ sickbeard . AUTO_UPDATE then " checked= \" checked \" " else " " # />
2014-10-21 15:09:01 -04:00
<label for="auto_update">
2014-04-23 03:12:51 -04:00
<span class="component-title">Automatic Updates</span>
2014-07-03 03:16:15 -04:00
<span class="component-desc">Automatically get and install updates for SickRage when available.</span>
2014-04-23 03:12:51 -04:00
</label>
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-04-23 03:12:51 -04:00
<span class="component-title"> </span>
2014-05-23 11:20:44 -04:00
<span class="component-desc">updates run on startup and in the background on the interval specified above.</span>
2014-04-23 03:12:51 -04:00
</label>
</div>
2014-07-03 03:16:15 -04:00
<div class="field-pair">
<input type="checkbox" name="notify_on_update" id="notify_on_update" #if $ sickbeard . NOTIFY_ON_UPDATE then " checked= \" checked \" " else " " # />
2014-10-21 15:09:01 -04:00
<label for="notify_on_update">
2014-07-03 03:16:15 -04:00
<span class="component-title">Notify on Update</span>
<span class="component-desc">Sends the notification SickRage has been updated to all enabled notifiers.</span>
</label>
</div>
2014-09-30 18:20:37 -04:00
2014-04-23 03:12:51 -04:00
<div class="field-pair">
2014-03-10 01:18:05 -04:00
<input type="checkbox" name="sort_article" id="sort_article" #if $ sickbeard . SORT_ARTICLE then " checked= \" checked \" " else " " # />
2014-10-21 15:09:01 -04:00
<label for="sort_article">
2014-05-23 11:20:44 -04:00
<span class="component-title">Sort Articles</span>
2014-03-10 01:18:05 -04:00
<span class="component-desc">Include articles (The, A, An) when sorting show lists.</span>
</label>
</div>
2014-04-27 04:17:28 -04:00
<div class="field-pair">
2014-10-21 15:09:01 -04:00
<label class="nocheck" for="indexer_default">
2014-04-27 04:17:28 -04:00
<span class="component-title">Default Indexer:</span>
<span class="component-desc">
2014-10-21 15:09:01 -04:00
<select id="indexer_default" name="indexer_default" class="form-control input-sm">
2014-05-01 20:57:51 -04:00
<option value="0" #if $ indexer == 0 then " selected= \" selected \" " else " " # >All Indexers</option>
2014-04-27 04:17:28 -04:00
#for $ indexer in $ sickbeard . indexerApi ( ) . indexers
<option value=" $ indexer " #if $ indexer == $ sickbeard . INDEXER_DEFAULT then " selected= \" selected \" " else " " # > $ sickbeard . indexerApi ().indexers[ $ indexer ]</option>
#end for
</select>
</span>
</label>
</div>
2014-05-21 14:17:52 -04:00
<div class="field-pair">
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-05-23 11:20:44 -04:00
<span class="component-title">Indexer Timeout</span>
2014-10-21 15:09:01 -04:00
<input type="text" name="indexer_timeout" id="indexer_timeout" value=" $ sickbeard . INDEXER_TIMEOUT " class="form-control input-sm input75" />
2014-05-21 14:17:52 -04:00
</label>
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-05-21 14:17:52 -04:00
<span class="component-title"> </span>
<span class="component-desc">Time in seconds before Indexer search times out for adding shows (eg. 10)</span>
</label>
</div>
2014-03-10 01:18:05 -04:00
<div class="field-pair">
2014-10-21 15:09:01 -04:00
<label class="nocheck" for="log_dir">
2014-05-23 11:20:44 -04:00
<span class="component-title">Logging Directory</span>
2014-10-21 15:09:01 -04:00
<input type="text" name="log_dir" id="log_dir" value=" $ sickbeard . ACTUAL_LOG_DIR " class="form-control input-sm input350" />
2014-03-10 01:18:05 -04:00
</label>
</div>
2014-05-04 14:47:09 -04:00
<div class="field-pair">
<input type="checkbox" name="handle_reverse_proxy" id="handle_reverse_proxy" #if $ sickbeard . HANDLE_REVERSE_PROXY then " checked= \" checked \" " else " " # />
2014-10-21 15:09:01 -04:00
<label for="handle_reverse_proxy">
2014-05-23 11:20:44 -04:00
<span class="component-title">Reverse Proxy Headers</span>
<span class="component-desc">Should SickRage accept the following reverse proxy headers?</span>
</label>
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-05-23 11:20:44 -04:00
<span class="component-title"> </span>
<span class="component-desc">(X-Forwarded-Host, X-Forwarded-For, X-Forwarded-Proto)</span>
2014-05-04 14:47:09 -04:00
</label>
</div>
2014-07-11 07:05:33 -04:00
<div class="field-pair">
<input type="checkbox" name="play_videos" id="play_videos" #if $ sickbeard . PLAY_VIDEOS then " checked= \" checked \" " else " " # />
2014-10-21 15:09:01 -04:00
<label for="play_videos">
2014-07-11 07:05:33 -04:00
<span class="component-title">Play Videos</span>
<span class="component-desc">Play video files from display show page?</span>
</label>
</div>
2014-09-30 18:20:37 -04:00
<div class="field-pair">
2014-10-21 15:09:01 -04:00
<label>
2014-09-30 18:20:37 -04:00
<span class="component-title">Show Root Directories</span>
<span class="component-desc">Set root directories for where you want your shows to be.</span>
#include $ os . path . join ( $ sickbeard . PROG_DIR , " gui/slick/interfaces/default/inc_rootDirs.tmpl " )
</label>
</div>
2014-09-30 06:22:47 -04:00
<input type="submit" class="btn config_submitter" value="Save Changes" />
2014-10-24 11:31:11 -04:00
</fieldset>
2014-09-30 06:22:47 -04:00
2014-03-10 01:18:05 -04:00
</div><!-- /component-group1 //-->
2014-10-21 15:09:01 -04:00
<div id="core-component-group2" class="component-group">
2014-03-10 01:18:05 -04:00
<div class="component-group-desc">
<h3>Web Interface</h3>
2014-05-23 08:37:22 -04:00
<p>It is recommended that you enable a username and password to secure SickRage from being tampered with remotely.</p>
2014-03-10 01:18:05 -04:00
<p><b>These options require a manual restart to take effect.</b></p>
</div>
<fieldset class="component-group-list">
<div class="field-pair">
<input type="checkbox" name="web_ipv6" id="web_ipv6" #if $ sickbeard . WEB_IPV6 then " checked= \" checked \" " else " " # />
2014-10-21 15:09:01 -04:00
<label for="web_ipv6">
2014-03-10 01:18:05 -04:00
<span class="component-title">Listen on IPv6</span>
2014-05-23 08:37:22 -04:00
<span class="component-desc">Allow SickRage to bind to any available IPv6 address?</span>
2014-03-10 01:18:05 -04:00
</label>
</div>
<div class="field-pair">
<input type="checkbox" name="web_log" id="web_log" #if $ sickbeard . WEB_LOG then " checked= \" checked \" " else " " # />
2014-10-21 15:09:01 -04:00
<label for="web_log">
2014-03-10 01:18:05 -04:00
<span class="component-title">HTTP Logs</span>
2014-06-11 04:34:28 -04:00
<span class="component-desc">Have SickRage's web server (tornado) generate logs?</span>
2014-03-10 01:18:05 -04:00
</label>
</div>
<div class="field-pair">
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-03-10 01:18:05 -04:00
<span class="component-title">HTTP Port</span>
2014-10-21 15:09:01 -04:00
<input type="text" name="web_port" value=" $ sickbeard . WEB_PORT " class="form-control input-sm input100" />
2014-03-10 01:18:05 -04:00
</label>
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-03-10 01:18:05 -04:00
<span class="component-title"> </span>
2014-05-23 08:37:22 -04:00
<span class="component-desc">Web port that SickRage should listen on (eg. 8081)</span>
2014-03-10 01:18:05 -04:00
</label>
</div>
<div class="field-pair">
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-03-10 01:18:05 -04:00
<span class="component-title">HTTP Username</span>
2014-10-21 15:09:01 -04:00
<input type="text" name="web_username" value=" $ sickbeard . WEB_USERNAME " class="form-control input-sm input300" />
2014-03-10 01:18:05 -04:00
</label>
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-03-10 01:18:05 -04:00
<span class="component-title"> </span>
<span class="component-desc">Username for authentication (blank for none)</span>
</label>
</div>
<div class="field-pair">
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-03-10 01:18:05 -04:00
<span class="component-title">HTTP Password</span>
2014-10-21 15:09:01 -04:00
<input type="password" name="web_password" value=" $ sickbeard . WEB_PASSWORD " class="form-control input-sm input300" />
2014-03-10 01:18:05 -04:00
</label>
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-03-10 01:18:05 -04:00
<span class="component-title"> </span>
<span class="component-desc">Password for authentication (blank for none)</span>
</label>
</div>
<div class="field-pair">
2014-10-21 15:09:01 -04:00
<label>
2014-03-10 01:18:05 -04:00
<input type="checkbox" name="enable_https" class="enabler" id="enable_https" #if $ sickbeard . ENABLE_HTTPS then " checked= \" checked \" " else " " # />
<span class="component-title">Enable HTTPS</span>
<span class="component-desc">Enable accessing the interface from a HTTPS address.</span>
</label>
</div>
<div id="content_enable_https">
<div class="field-pair">
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-03-10 01:18:05 -04:00
<span class="component-title">HTTPS Certificate</span>
2014-10-21 15:09:01 -04:00
<input type="text" name="https_cert" value=" $ sickbeard . HTTPS_CERT " class="form-control input-sm input300" />
2014-03-10 01:18:05 -04:00
</label>
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-03-10 01:18:05 -04:00
<span class="component-title"> </span>
<span class="component-desc">File name or path to HTTPS Certificate.</span>
</label>
</div>
<div class="field-pair">
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-03-10 01:18:05 -04:00
<span class="component-title">HTTPS Key</span>
2014-10-21 15:09:01 -04:00
<input type="text" name="https_key" value=" $ sickbeard . HTTPS_KEY " class="form-control input-sm input300" />
2014-03-10 01:18:05 -04:00
</label>
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-03-10 01:18:05 -04:00
<span class="component-title"> </span>
<span class="component-desc">File name or path to HTTPS Key.</span>
</label>
</div>
</div>
<input type="submit" class="btn config_submitter" value="Save Changes" />
</fieldset>
</div><!-- /component-group2 //-->
2014-10-21 15:09:01 -04:00
<div id="core-component-group3" class="component-group">
<div class="component-group-desc">
<h3>Date and Time</h3>
</div>
<fieldset class="component-group-list">
<div class="field-pair">
<input type="checkbox" name="fuzzy_dating" id="fuzzy_dating" class="viewIf datePresets" #if $ sickbeard . FUZZY_DATING == True then " checked= \" checked \" " else " " # />
<label for="fuzzy_dating">
<span class="component-title">Display Fuzzy Dates</span>
<span class="component-desc">E.g "Last Thu", "On Tue" and move the absolute date into time tooltips?</span>
</label>
</div>
<div class="field-pair show_if_fuzzy_dating #if True == $ sickbeard . FUZZY_DATING then ' ' else ' metadataDiv ' # ">
<input type="checkbox" name="trim_zero" id="trim_zero" #if $ sickbeard . TRIM_ZERO == True then " checked= \" checked \" " else " " # />
<label for="trim_zero">
<span class="component-title">Trim Zero Padding</span>
<span class="component-desc">Trim leading number "0" shown on hour of day and date of month?</span>
</label>
</div>
<div class="field-pair">
<label class="nocheck" for="date_presets">
<span class="component-title">Date Style:</span>
<span class="component-desc">
<select class="form-control input-sm #if True == $ sickbeard . FUZZY_DATING then ' ' else ' metadataDiv ' # " id="date_presets #if True == $ sickbeard . FUZZY_DATING then ' ' else ' _na ' # " name="date_preset #if True == $ sickbeard . FUZZY_DATING then ' ' else ' _na ' # ">
#for $ cur_preset in $ date_presets :
<option value=" $ cur_preset " #if $ cur_preset == $ sickbeard . DATE_PRESET or ( " %x " == $ sickbeard . DATE_PRESET and " $cur_preset " == ' %a , % b %d , % Y ' ) then " selected= \" selected \" " else " " # > $ datetime . datetime ( $ datetime . datetime . now ().year, 12, 31, 14, 30, 47).strftime( $ cur_preset )</option>
#end for
</select>
<select class="form-control input-sm #if True != $ sickbeard . FUZZY_DATING then ' ' else ' metadataDiv ' # " id="date_presets #if True != $ sickbeard . FUZZY_DATING then ' ' else ' _na ' # " name="date_preset #if True != $ sickbeard . FUZZY_DATING then ' ' else ' _na ' # ">
<option value="%x" #if " %x " == $ sickbeard . DATE_PRESET then " selected= \" selected \" " else " " # >Use System Default</option>
#for $ cur_preset in $ date_presets :
<option value=" $ cur_preset " #if $ cur_preset == $ sickbeard . DATE_PRESET then " selected= \" selected \" " else " " # > $ datetime . datetime ( $ datetime . datetime . now ().year, 12, 31, 14, 30, 47).strftime( $ cur_preset )</option>
#end for
</select>
</span>
</label>
</div>
<div class="field-pair">
<label class="nocheck" for="time_presets">
<span class="component-title">Time Style:</span>
<span class="component-desc">
<select id="time_presets" name="time_preset" class="form-control input-sm">
#for $ cur_preset in $ time_presets :
<option value=" $ cur_preset " #if $ cur_preset == $ sickbeard . TIME_PRESET_W_SECONDS then " selected= \" selected \" " else " " # > $ sbdatetime . now ().sbftime(show_seconds=True,t_preset= $ cur_preset )</option>
#end for
</select>
</span>
</label>
<label class="nocheck">
<span class="component-title"> </span>
<span class="component-desc"><b>Note:</b> Seconds are only shown on the History page.</span>
</label>
</div>
<div class="field-pair">
<label class="nocheck">
<span class="component-title">Timezones:</span>
<span class="component-desc">Display dates and times in either your timezone or the shows network timezone?</span>
</label>
<label class="nocheck">
<span class="component-title"> </span>
<span class="component-desc">
<input type="radio" name="timezone_display" id="local" value="local" #if $ sickbeard . TIMEZONE_DISPLAY == " local " then " checked= \" checked \" " else " " # />Local Timezone<br />
</span>
<span class="component-title"> </span>
<span class="component-desc">
<input type="radio" name="timezone_display" id="network" value="network" #if $ sickbeard . TIMEZONE_DISPLAY == " network " then " checked= \" checked \" " else " " # />Network Timezone<br />
</span>
</label>
</div>
<input type="submit" class="btn config_submitter" value="Save Changes" />
</fieldset>
</div><!-- /component-group3 //-->
<div id="core-component-group4" class="component-group">
2014-03-10 01:18:05 -04:00
<div class="component-group-desc">
2014-09-30 18:20:37 -04:00
<h3>Advanced Settings</h3>
2014-03-30 01:45:36 -04:00
<p>You need to know what you are doing here!!!</p>
2014-03-10 01:18:05 -04:00
</div>
2014-10-21 15:09:01 -04:00
<fieldset class="component-group-list">
2014-05-17 07:40:26 -04:00
2014-07-27 13:58:19 -04:00
<div class="field-pair">
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-07-27 18:20:17 -04:00
<span class="component-title">Branch Version:</span>
2014-07-27 13:58:19 -04:00
<span class="component-desc">
2014-10-21 15:09:01 -04:00
<select id="branchVersion" class="form-control form-control-inline input-sm pull-left">
2014-07-27 13:58:19 -04:00
#for $ cur_branch in $ sickbeard . versionCheckScheduler . action . list_remote_branches ( ) :
2014-07-30 15:30:35 -04:00
<option value=" $ cur_branch " #if $ cur_branch == $ sickbeard . BRANCH then " selected= \" selected \" " else " " # > $ cur_branch </option>
2014-07-27 13:58:19 -04:00
#end for
</select>
2014-10-21 15:09:01 -04:00
<input class="btn btn-inline" style="margin-left: 6px;" type="button" id="branchCheckout" value="Checkout Branch">
2014-07-27 13:58:19 -04:00
</span>
</label>
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-07-27 13:58:19 -04:00
<span class="component-title"> </span>
<span class="component-desc">Select the branch you wish to use, changing this will require a restart.</span>
</label>
</div>
2014-09-30 18:20:37 -04:00
<div class="field-pair">
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-05-23 11:20:44 -04:00
<span class="component-title">CPU Throttling:</span>
<span class="component-desc">
2014-10-21 15:09:01 -04:00
<select id="cpu_presets" name="cpu_preset" class="form-control input-sm">
2014-05-23 11:20:44 -04:00
#for $ cur_preset in $ cpu_presets :
2014-09-30 18:20:37 -04:00
<option value=" $ cur_preset " #if $ cur_preset == $ sickbeard . CPU_PRESET then " selected= \" selected \" " else " " # > $ cur_preset . capitalize ()</option>
2014-05-23 11:20:44 -04:00
#end for
</select>
2014-05-17 07:40:26 -04:00
</span>
2014-05-23 11:20:44 -04:00
</label>
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-05-23 11:20:44 -04:00
<span class="component-title"> </span>
<span class="component-desc">Normal = Default. High = Lower CPU usage. Low = Higher CPU usage.</span>
2014-05-17 07:40:26 -04:00
</label>
</div>
2014-03-10 01:18:05 -04:00
<div class="field-pair">
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-03-10 01:18:05 -04:00
<span class="component-title">Anonymous Redirect</span>
2014-10-21 15:09:01 -04:00
<input type="text" name="anon_redirect" value=" $ sickbeard . ANON_REDIRECT " class="form-control input-sm input300" />
2014-03-10 01:18:05 -04:00
</label>
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-03-10 01:18:05 -04:00
<span class="component-title"> </span>
<span class="component-desc">Backlink protection via anonymizer service, must end in <b>?</b></span>
</label>
</div>
<div class="field-pair">
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-03-10 01:18:05 -04:00
<span class="component-title">Git Path</span>
2014-10-21 15:09:01 -04:00
<input type="text" name="git_path" value=" $ sickbeard . GIT_PATH " class="form-control input-sm input300" />
2014-03-10 01:18:05 -04:00
</label>
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-03-10 01:18:05 -04:00
<span class="component-title"> </span>
2014-05-23 11:20:44 -04:00
<span class="component-desc">Specify path to Git binary, use only if OS is unable to find the path.</span>
2014-03-10 01:18:05 -04:00
</label>
</div>
<div class="field-pair">
<input type="checkbox" name="use_api" class="enabler" id="use_api" #if $ sickbeard . USE_API then " checked= \" checked \" " else " " # />
2014-10-21 15:09:01 -04:00
<label for="use_api">
2014-03-10 01:18:05 -04:00
<span class="component-title">Enable API</span>
<span class="component-desc">Allow the use of the Sick-Beard API.</span>
</label>
</div>
<div id="content_use_api">
<div class="field-pair">
2014-10-21 15:09:01 -04:00
<label class="nocheck" for="api_key">
2014-03-10 01:18:05 -04:00
<span class="component-title">API Key</span>
2014-10-21 15:09:01 -04:00
<input type="text" name="api_key" id="api_key" value=" $ sickbeard . API_KEY " class="form-control input-sm input300" readonly="readonly" />
<input class="btn btn-inline" type="button" id="generate_new_apikey" value="Generate">
2014-03-10 01:18:05 -04:00
</label>
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-03-10 01:18:05 -04:00
<span class="component-title"> </span>
<span class="component-desc">Used to give 3rd party programs limited access to Sick-Beard.</span>
</label>
</div>
</div>
<div class="field-pair">
<input type="checkbox" name="encryption_version" id="encryption_version" #if $ sickbeard . ENCRYPTION_VERSION then " checked= \" checked \" " else " " # />
2014-10-21 15:09:01 -04:00
<label for="encryption_version">
2014-03-10 01:18:05 -04:00
<span class="component-title">Encrypt Passwords</span>
2014-05-23 11:20:44 -04:00
<span class="component-desc">Should SickRage encrypt passwords in <code>config.ini</code> file?</span>
2014-03-10 01:18:05 -04:00
</label>
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-03-10 01:18:05 -04:00
<span class="component-title"> </span>
2014-10-21 15:09:01 -04:00
<span class="component-desc"><b>Warning</b>: Passwords must only contain <a href="http://en.wikipedia.org/wiki/ASCII #ASCII _printable_characters " >ASCII characters</a></span>
2014-03-10 01:18:05 -04:00
</label>
</div>
<div class="field-pair">
<input type="checkbox" name="calendar_unprotected" id="calendar_unprotected" #if $ sickbeard . CALENDAR_UNPROTECTED then " checked= \" checked \" " else " " # />
2014-10-21 15:09:01 -04:00
<label for="calendar_unprotected">
2014-03-10 01:18:05 -04:00
<span class="component-title">Unprotected Calendar</span>
2014-05-23 11:20:44 -04:00
<span class="component-desc">Allow subscribing to the calendar without user and password.</span>
2014-03-10 01:18:05 -04:00
</label>
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-03-10 01:18:05 -04:00
<span class="component-title"> </span>
<span class="component-desc">Some services like Google Calendar only work this way.</span>
</label>
</div>
2014-04-24 11:50:35 -04:00
<div class="field-pair">
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-04-24 11:50:35 -04:00
<span class="component-title">Proxy Settings</span>
2014-10-21 15:09:01 -04:00
<input type="text" name="proxy_setting" value=" $ sickbeard . PROXY_SETTING " class="form-control input-sm input300" />
2014-04-24 11:50:35 -04:00
</label>
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-04-24 11:50:35 -04:00
<span class="component-title"> </span>
2014-05-23 11:20:44 -04:00
<span class="component-desc">Proxy to use for connecting to providers. Leave empty to not use proxy.</span>
2014-04-24 11:50:35 -04:00
</label>
</div>
2014-10-07 08:55:17 -04:00
<div class="field-pair">
<input type="checkbox" name="proxy_indexers" id="proxy_indexers" #if $ sickbeard . PROXY_INDEXERS == True then " checked= \" checked \" " else " " # />
2014-10-21 15:09:01 -04:00
<label for="proxy_indexers">
2014-10-07 08:55:17 -04:00
<span class="component-title">Proxy Indexers</span>
<span class="component-desc">Use the proxy for connecting to indexers (thetvdb, tvrage)</span>
</label>
</div>
2014-04-26 17:24:29 -04:00
2014-03-10 01:18:05 -04:00
<input type="submit" class="btn config_submitter" value="Save Changes" />
</fieldset>
</div><!-- /component-group4 //-->
2014-10-21 15:09:01 -04:00
<div id="core-component-group5" class="component-group">
2014-10-08 00:48:35 -04:00
<div class="component-group-desc">
<h3>UI Theme Settings</h3>
<p>Change UI settings to your liking.</p>
</div>
2014-10-21 15:09:01 -04:00
<fieldset class="component-group-list">
2014-10-08 00:48:35 -04:00
<div class="field-pair">
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-10-08 00:48:35 -04:00
<span class="component-title">UI Theme:</span>
<span class="component-desc">
2014-10-21 15:09:01 -04:00
<select id="theme_name" name="theme_name" class="form-control input-sm">
2014-10-08 00:48:35 -04:00
<option value="dark" #if $ sickbeard . THEME_NAME == " dark " then " selected= \" selected \" " else " " # >Dark</option>
<option value="original" #if $ sickbeard . THEME_NAME == " original " then " selected= \" selected \" " else " " # >Original</option>
</select>
</span>
</label>
2014-10-21 15:09:01 -04:00
<label class="nocheck">
2014-10-08 00:48:35 -04:00
<span class="component-title"> </span>
2014-10-08 02:56:31 -04:00
<span class="component-desc"><font color="red">Please refresh your browser after you have saved for appearance to take effect.</font></span>
2014-10-08 00:48:35 -04:00
</label>
</div>
<input type="submit" class="btn config_submitter" value="Save Changes" />
</fieldset>
</div><!-- /component-group5 //-->
2014-03-10 01:18:05 -04:00
<br/>
2014-10-21 15:09:01 -04:00
<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 01:18:05 -04:00
</div><!-- /config-components -->
2014-10-21 15:09:01 -04:00
</form>
</div>
</div>
2014-03-10 01:18:05 -04:00
2014-10-21 15:09:01 -04:00
<div></div>
2014-03-10 01:18:05 -04:00
<script type="text/javascript" charset="utf-8">
<!--
jQuery(' #log _dir ' ).fileBrowser( { title: ' Select Log Directory ' });
jQuery(' #config - components ' ).tabs();
//-->
</script>
#include $ os . path . join ( $ sickbeard . PROG_DIR , " gui/slick/interfaces/default/inc_bottom.tmpl " )