mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Add site editable maxheadersiteration. Rename the setting name from max.headers.iteration to maxheadersiteration.
This commit is contained in:
@@ -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,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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user