thanks to kevin123 lots of changes

This commit is contained in:
jonnyboy
2013-01-05 06:18:54 -05:00
parent 1d02877e83
commit 596a74c22d
34 changed files with 7117 additions and 179 deletions
+1 -12
View File
@@ -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();