mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 17:28:55 +00:00
29 lines
501 B
PHP
Executable File
29 lines
501 B
PHP
Executable File
<?php
|
|
|
|
require_once("config.php");
|
|
require_once(WWW_DIR."/lib/postprocess.php");
|
|
|
|
$db = new DB();
|
|
$query = "SELECT COUNT(*) AS cnt from releases where bookinfoID IS NULL and categoryID = 7020;";
|
|
|
|
$i=1;
|
|
while($i=1)
|
|
{
|
|
$result = $db->query($query);
|
|
$count = $result[0]['cnt'];
|
|
|
|
if ($count > 0) {
|
|
$postprocess = new PostProcess(true);
|
|
$postprocess->processBooks();
|
|
} else {
|
|
printf("BookPrc : Processing $count book releases\n");
|
|
sleep(15);
|
|
}
|
|
}
|
|
|
|
mysql_free_result($result);
|
|
|
|
?>
|
|
|
|
|