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:
parent
e6cebdc5d4
commit
e3da060000
@ -30,7 +30,7 @@
|
||||
<legend class="legendStep">Find a show on the TVDB or TVRAGE</legend>
|
||||
|
||||
<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:
|
||||
Show retrieved from existing metadata: <a href="$sickbeard.indexerApi($provided_indexer).config["show_url"]$provided_indexer_id">$provided_indexer_name</a>
|
||||
|
@ -41,11 +41,10 @@ $(document).ready(function () {
|
||||
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 + '...');
|
||||
|
||||
var indexerTimeout = parseInt($('#indexer_timeout').val(), 10);
|
||||
searchRequestXhr = $.ajax({
|
||||
url: sbRoot + '/home/addShows/searchIndexersForShowName',
|
||||
data: {'search_term': $('#nameToSearch').val(), 'lang': $('#indexerLangSelect').val(), 'indexer': $('#providedIndexer').val()},
|
||||
timeout: indexerTimeout * 1000,
|
||||
timeout: parseInt($('#indexer_timeout').val(), 10) * 1000,
|
||||
dataType: 'json',
|
||||
error: function () {
|
||||
$('#searchResults').empty().html('search timed out, try again or try another indexer');
|
||||
|
Loading…
Reference in New Issue
Block a user