1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-08-13 16:53:54 -04:00

Merge pull request #1302 from abeloin/patch-torrent_host_info

Added default host:port for each torrent clients.
This commit is contained in:
Alexandre Beloin 2015-02-15 18:27:14 -05:00
commit 4cf2e45544
2 changed files with 5 additions and 3 deletions

View File

@ -449,7 +449,6 @@
<input type="text" name="torrent_host" id="torrent_host" value="$sickbeard.TORRENT_HOST" class="form-control input-sm input350" /> <input type="text" name="torrent_host" id="torrent_host" value="$sickbeard.TORRENT_HOST" class="form-control input-sm input350" />
<div class="clear-left"> <div class="clear-left">
<p id="host_desc_torrent">URL to your torrent client (e.g. http://localhost:8000/)</p> <p id="host_desc_torrent">URL to your torrent client (e.g. http://localhost:8000/)</p>
<p id="host_desc_rtorrent" style="display:none"><b>Note:</b> <i>rTorrent</i> client URLs use e.g. scgi://localhost:5000/</p>
</div> </div>
</span> </span>
</label> </label>

View File

@ -83,6 +83,7 @@ $(document).ready(function(){
client = 'uTorrent'; client = 'uTorrent';
$(torrent_path_option).hide(); $(torrent_path_option).hide();
$(torrent_seed_time_option).show(); $(torrent_seed_time_option).show();
$('#host_desc_torrent').text('URL to your uTorrent client (e.g. http://localhost:8000)');
} else if ('transmission' == selectedProvider){ } else if ('transmission' == selectedProvider){
client = 'Transmission'; client = 'Transmission';
$(torrent_seed_time_option).show(); $(torrent_seed_time_option).show();
@ -90,12 +91,14 @@ $(document).ready(function(){
$(torrent_label_option).hide(); $(torrent_label_option).hide();
$(torrent_label_anime_option).hide(); $(torrent_label_anime_option).hide();
$(torrent_rpcurl_option).show(); $(torrent_rpcurl_option).show();
$('#host_desc_torrent').text('URL to your Transmission client (e.g. http://localhost:9091)');
//$('#directory_title').text(client + directory); //$('#directory_title').text(client + directory);
} else if ('deluge' == selectedProvider){ } else if ('deluge' == selectedProvider){
client = 'Deluge'; client = 'Deluge';
$(torrent_verify_cert_option).show(); $(torrent_verify_cert_option).show();
$(label_warning_deluge).show(); $(label_warning_deluge).show();
$(label_anime_warning_deluge).show(); $(label_anime_warning_deluge).show();
$('#host_desc_torrent').text('URL to your Deluge client (e.g. http://localhost:8112)');
//$('#directory_title').text(client + directory); //$('#directory_title').text(client + directory);
} else if ('download_station' == selectedProvider){ } else if ('download_station' == selectedProvider){
client = 'Synology DS'; client = 'Synology DS';
@ -103,13 +106,13 @@ $(document).ready(function(){
$(torrent_label_anime_option).hide(); $(torrent_label_anime_option).hide();
$('#torrent_paused_option').hide(); $('#torrent_paused_option').hide();
$(torrent_path_option).find('.fileBrowser').hide(); $(torrent_path_option).find('.fileBrowser').hide();
$('#host_desc_torrent').text('URL to your Synology DS client (e.g. http://localhost:5000)');
//$('#directory_title').text(client + directory); //$('#directory_title').text(client + directory);
$(path_synology).show(); $(path_synology).show();
} else if ('rtorrent' == selectedProvider){ } else if ('rtorrent' == selectedProvider){
client = 'rTorrent'; client = 'rTorrent';
$(host_desc_torrent).hide();
$(host_desc_rtorrent).show();
$(torrent_paused_option).hide(); $(torrent_paused_option).hide();
$('#host_desc_torrent').text('URL to your rTorrent client (e.g. scgi://localhost:5000 </br> or https://localhost/rutorrent/plugins/httprpc/action.php)');
//$('#directory_title').text(client + directory); //$('#directory_title').text(client + directory);
} }
$('#host_title').text(client + host); $('#host_title').text(client + host);