mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-30 01:38:54 +00:00
thanks to kevin123 lots of changes
This commit is contained in:
+1
-12
@@ -1,16 +1,7 @@
|
||||
<?php
|
||||
|
||||
require("config.php");
|
||||
require_once("config.php");
|
||||
require_once(WWW_DIR."/lib/postprocess.php");
|
||||
require("pid.php");
|
||||
|
||||
$filename = pathinfo(__FILE__, PATHINFO_FILENAME);
|
||||
|
||||
$pidfile = new pidfile("/tmp", $filename);
|
||||
if($pidfile->is_already_running()) {
|
||||
echo "Already running.\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
$db = new DB();
|
||||
$query = "select count(rn.releaseID) from releasenfo rn left outer join releases r ON r.ID = rn.releaseID WHERE rn.nfo IS NULL AND rn.attempts < 5";
|
||||
@@ -19,7 +10,6 @@ $i=1;
|
||||
while($i=1)
|
||||
{
|
||||
$result = mysql_query($query);
|
||||
//$result = $db->queryDirect($query);
|
||||
|
||||
if (empty($result)) {
|
||||
$result = $db->queryDirect($query);
|
||||
@@ -33,7 +23,6 @@ while($i=1)
|
||||
while ($row = mysql_fetch_assoc($result)) {
|
||||
$count = $row['count(rn.releaseID)'];
|
||||
}
|
||||
|
||||
if ($count > 0) {
|
||||
$postprocess = new PostProcess(true);
|
||||
$postprocess->processNfos();
|
||||
|
||||
Reference in New Issue
Block a user