1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-04 15:12:23 -05:00

Fixed leading slash.

Fix Transmission name not showing in RPC URL text in config.
Added option descritption
This commit is contained in:
Alexandre Beloin 2015-01-26 14:52:18 -05:00
parent 37ab43adbc
commit b67ef81337
3 changed files with 7 additions and 2 deletions

View File

@ -460,6 +460,9 @@
<span class="component-title" id="rpcurl_title">Torrent RPC URL</span>
<span class="component-desc">
<input type="text" name="torrent_rpcurl" id="torrent_rpcurl" value="$sickbeard.TORRENT_RPCURL" class="form-control input-sm input350"/>
<div class="clear-left">
<p id="rpcurl_desc_">The path without leading and trailing slashes (e.g. transmission)</p>
</div>
</span>
</label>
</div>

View File

@ -47,6 +47,7 @@ $(document).ready(function(){
directory = ' directory',
client = '',
option_panel = '#options_torrent_blackhole';
rpcurl = ' RPC URL'
if ('blackhole' != selectedProvider) {
var label_warning_deluge = '#label_warning_deluge',
@ -115,6 +116,7 @@ $(document).ready(function(){
$('#username_title').text(client + username);
$('#password_title').text(client + password);
$('#torrent_client').text(client);
$('#rpcurl_title').text(client + rpcurl);
option_panel = '#options_torrent_clients';
}
$(option_panel).show();

View File

@ -286,7 +286,7 @@ TORRENT_HIGH_BANDWIDTH = False
TORRENT_LABEL = ''
TORRENT_LABEL_ANIME = ''
TORRENT_VERIFY_CERT = False
TORRENT_RPCURL = '/transmission'
TORRENT_RPCURL = 'transmission'
USE_KODI = False
KODI_ALWAYS_ON = True
@ -809,7 +809,7 @@ def initialize(consoleLogging=True):
TORRENT_LABEL = check_setting_str(CFG, 'TORRENT', 'torrent_label', '')
TORRENT_LABEL_ANIME = check_setting_str(CFG, 'TORRENT', 'torrent_label_anime', '')
TORRENT_VERIFY_CERT = bool(check_setting_int(CFG, 'TORRENT', 'torrent_verify_cert', 0))
TORRENT_RPCURL = check_setting_str(CFG, 'TORRENT', 'torrent_rpcurl', '/transmission')
TORRENT_RPCURL = check_setting_str(CFG, 'TORRENT', 'torrent_rpcurl', 'transmission')
USE_KODI = bool(check_setting_int(CFG, 'KODI', 'use_kodi', 0))
KODI_ALWAYS_ON = bool(check_setting_int(CFG, 'KODI', 'kodi_always_on', 1))