mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-01 10:48:53 +00:00
Fix failing web requestid lookup.
This commit is contained in:
@@ -11,7 +11,7 @@ require_once (NN_LIB . 'RequestID.php');
|
||||
*/
|
||||
class RequestIDWeb extends RequestID
|
||||
{
|
||||
const MAX_WEB_LOOKUPS = 100; // Please don't exceed this, not to be to harsh on the Request id server.
|
||||
const MAX_WEB_LOOKUPS = 75; // Please don't exceed this, not to be to harsh on the Request id server.
|
||||
|
||||
/**
|
||||
* The id of the PRE entry the found request id belongs to.
|
||||
@@ -62,8 +62,8 @@ class RequestIDWeb extends RequestID
|
||||
$this->_request_hours,
|
||||
(empty($this->_groupID) ? '' : ('AND r.groupid = ' . $this->_groupID)),
|
||||
$this->_getReqIdGroups(),
|
||||
($this->_maxTime === '' ? '' : sprintf(' AND r.adddate > NOW() - INTERVAL %d HOUR', $this->_maxTime)),
|
||||
$this->_limit
|
||||
($this->_maxTime === 0 ? '' : sprintf(' AND r.adddate > NOW() - INTERVAL %d HOUR', $this->_maxTime)),
|
||||
(empty($this->_limit) || $this->_limit > 1000 ? 1000 : $this->_limit)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user