Add site editable maxheadersiteration. Rename the setting name from max.headers.iteration to maxheadersiteration.

This commit is contained in:
DariusIII
2015-07-18 18:27:12 +02:00
parent a65d5ea2a3
commit f683ba72ea
4 changed files with 12 additions and 4 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ use newznab\db\Settings;
$pdo = new Settings();
$maxHeaders = $pdo->getSetting('max.headers.iteration') ?: 1000000;
$maxHeaders = $pdo->getSetting('maxheadersiteration');
// Create the connection here and pass
$nntp = new \NNTP(['Settings' => $pdo]);
+2 -2
View File
@@ -2,8 +2,8 @@
<newznab>
<versions>
<sql>
<db>161</db>
<file>161</file>
<db>162</db>
<file>162</file>
</sql>
<git>
<tag>0.4.1</tag>
+1
View File
@@ -0,0 +1 @@
UPDATE settings SET setting = 'maxheadersiteration' WHERE settings.section = 'max' AND settings.subsection = 'headers' AND settings.name = 'iteration';
@@ -2,7 +2,7 @@
<form action="{$SCRIPT_NAME}?action=submit" method="post">
{if $error != ''}
{if isset ($error) && $error != ''}
<div class="error">{$error}</div>
{/if}
@@ -648,6 +648,13 @@
<div class="hint">The maximum number of messages to process for a group in one run of update_binaries.</div>
</td>
</tr>
<tr>
<td><label for="maxheadersiteration">Max headers iteration</label>:</td>
<td>
<input class="small" id="maxheadersiteration" name="maxheadersiteration" type="text" value="{$site->maxheadersiteration}" />
<div class="hint">The maximum number of headers that update binaries sees as the total range. This ensure that a total of no more than this is attempted to be downloaded at one time per group.</div>
</td>
</tr>
<tr>
<td><label for="newgroupscanmethod">Where to start new groups</label>:</td>