Newznab

From RARForge
Jump to navigation Jump to search

Postprocess script[edit]

This script only does postprocessing. By default update_releases.php post processes the last 100 releases. if you backfill or if your update_releases.php has more than 100 releases some may not process. This script is to be run in another shell and only does post processing on releases that have not been done yet. when there is nothing to to it looks like it is hung but if you have more releases the script continues. Another rational is that it allows update_releases to finish quicker because the number of post processing it does is changed to 1.

  • edit www/lib/postprocess.php

<source>

 public function processAll()
       {

- $this->processAdditional(); + //$this->processAdditional(); </source> <source> - $numtoProcess = 100; + $numtoProcess = 1; </source>

  • create misc/custom/justpostprocessing.php

<source lang=php> <?php define('FS_ROOT', realpath(dirname(__FILE__))); require_once(FS_ROOT."/../../www/config.php"); require_once(FS_ROOT."/../../www/lib/postprocess.php");

$i=1; while($i=1)

 {
   $postprocess = new PostProcess();
   $postprocess->processAdditional();
 }

?> </source>

  • chmod 755 justpostprocessing.php
  • run that in a screen/tmux session