mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-03 11:49:03 +00:00
Fixed another snedEmail error, fixed group selection (error 412) and some adjustment in thetvdb.
This commit is contained in:
@@ -117,7 +117,7 @@ class TmuxOutput extends Tmux
|
||||
$buffer = '';
|
||||
$state = ($this->runVar['settings']['is_running'] == 1) ? 'Running' : 'Disabled';
|
||||
//$version = $this->_tvers . 'r' . $this->_vers;
|
||||
$tversion = '0.5r0081';
|
||||
$tversion = '0.5r0082';
|
||||
|
||||
$buffer .= sprintf($this->tmpMasks[2],
|
||||
"Monitor $state v$tversion @ $this->_tvers [" . $this->_vers ."]: ",
|
||||
|
||||
@@ -422,14 +422,14 @@ class Binaries
|
||||
}
|
||||
|
||||
// Re-select group, download headers again without compression and re-enable compression.
|
||||
$this->_nntp->selectGroup($groupArr['Name']);
|
||||
$this->_nntp->selectGroup($groupArr['name']);
|
||||
$msgs = $this->_nntp->getXOVER($first . '-' . $last);
|
||||
$this->_nntp->enableCompression();
|
||||
|
||||
// Check if the non-compression headers have an error.
|
||||
if ($this->_nntp->isError($msgs)) {
|
||||
$this->log(
|
||||
"Code {$msgs->code}: {$msgs->message}\nSkipping group: ${$groupArr['Name']}",
|
||||
"Code {$msgs->code}: {$msgs->message}\nSkipping group: ${$groupArr['name']}",
|
||||
'scan',
|
||||
\Logger::LOG_WARNING,
|
||||
'error'
|
||||
|
||||
@@ -156,6 +156,7 @@ class TheTVDB
|
||||
{
|
||||
|
||||
$apiresponse = Utility::getUrl(['url' => $this->MIRROR.'/api/GetSeries.php?seriesname='.preg_replace('/\s+/', '+', $seriesname).'&language=all']);
|
||||
var_dump($apiresponse);
|
||||
|
||||
if(!$apiresponse)
|
||||
return false;
|
||||
@@ -224,7 +225,8 @@ class TheTVDB
|
||||
$seriesid = $this->lookupSeriesID($seriesName);
|
||||
if($seriesid > 0)
|
||||
{
|
||||
if($TheTVDBAPIArray = $this->TheTVDBAPI($seriesid, $seriesName))
|
||||
$TheTVDBAPIArray = $this->TheTVDBAPI($seriesid, $seriesName);
|
||||
if($TheTVDBAPIArray)
|
||||
{
|
||||
$this->addSeries($TheTVDBAPIArray);
|
||||
$this->addEpisodes($TheTVDBAPIArray);
|
||||
|
||||
@@ -307,7 +307,7 @@ class Users
|
||||
|
||||
$data = $db->query(sprintf("select ID,email from users WHERE role = %d and rolechangedate < now()", $uprole));
|
||||
foreach ($data as $u) {
|
||||
sendEmail($u["email"], $msgsubject, $msgbody, $s->email);
|
||||
Utility::sendEmail($u["email"], $msgsubject, $msgbody, $s->email);
|
||||
$db->exec(sprintf("update users SET role = %d, rolechangedate=null WHERE ID = %d", $downrole, $u["ID"]));
|
||||
}
|
||||
|
||||
@@ -739,7 +739,7 @@ class Users
|
||||
$url = $serverurl . "register?invitecode=" . $token;
|
||||
$contents = $sender["username"] . " has sent an invite to join " . $sitetitle . " to this email address. To accept the invitation click the following link.\n\n " . $url;
|
||||
|
||||
sendEmail($emailto, $subject, $contents, $siteemail);
|
||||
Utility::sendEmail($emailto, $subject, $contents, $siteemail);
|
||||
$this->addInvite($uid, $token);
|
||||
|
||||
return $url;
|
||||
|
||||
Reference in New Issue
Block a user