1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Fix for adding new shows and issue with indexer_timeout

This commit is contained in:
echel0n 2014-05-21 15:55:02 -07:00
parent e6cebdc5d4
commit e3da060000
2 changed files with 2 additions and 3 deletions

View File

@ -30,7 +30,7 @@
<legend class="legendStep">Find a show on the TVDB or TVRAGE</legend> <legend class="legendStep">Find a show on the TVDB or TVRAGE</legend>
<div class="stepDiv"> <div class="stepDiv">
<input type="hidden" name="indexer_timeout" id="indexer_timeout" value="$sickbeard.INDEXER_TIMEOUT" /> <input type="hidden" id="indexer_timeout" value="$sickbeard.INDEXER_TIMEOUT" />
#if $use_provided_info: #if $use_provided_info:
Show retrieved from existing metadata: <a href="$sickbeard.indexerApi($provided_indexer).config["show_url"]$provided_indexer_id">$provided_indexer_name</a> Show retrieved from existing metadata: <a href="$sickbeard.indexerApi($provided_indexer).config["show_url"]$provided_indexer_id">$provided_indexer_name</a>

View File

@ -41,11 +41,10 @@ $(document).ready(function () {
var searchingFor = $('#nameToSearch').val() + ' on ' + $('#providedIndexer option:selected').text() + ' in ' + $('#indexerLangSelect').val(); var searchingFor = $('#nameToSearch').val() + ' on ' + $('#providedIndexer option:selected').text() + ' in ' + $('#indexerLangSelect').val();
$('#searchResults').empty().html('<img id="searchingAnim" src="' + sbRoot + '/images/loading32.gif" height="32" width="32" /> searching ' + searchingFor + '...'); $('#searchResults').empty().html('<img id="searchingAnim" src="' + sbRoot + '/images/loading32.gif" height="32" width="32" /> searching ' + searchingFor + '...');
var indexerTimeout = parseInt($('#indexer_timeout').val(), 10);
searchRequestXhr = $.ajax({ searchRequestXhr = $.ajax({
url: sbRoot + '/home/addShows/searchIndexersForShowName', url: sbRoot + '/home/addShows/searchIndexersForShowName',
data: {'search_term': $('#nameToSearch').val(), 'lang': $('#indexerLangSelect').val(), 'indexer': $('#providedIndexer').val()}, data: {'search_term': $('#nameToSearch').val(), 'lang': $('#indexerLangSelect').val(), 'indexer': $('#providedIndexer').val()},
timeout: indexerTimeout * 1000, timeout: parseInt($('#indexer_timeout').val(), 10) * 1000,
dataType: 'json', dataType: 'json',
error: function () { error: function () {
$('#searchResults').empty().html('search timed out, try again or try another indexer'); $('#searchResults').empty().html('search timed out, try again or try another indexer');