mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 17:28:55 +00:00
13 lines
409 B
PHP
13 lines
409 B
PHP
<?php
|
|
|
|
declare(ticks=1);
|
|
require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php';
|
|
use Blacklight\libraries\Forking;
|
|
|
|
// Check if argument 1 is numeric, which is to limit article count.
|
|
try {
|
|
(new Forking())->processWorkType('backfill', (isset($argv[1]) && is_numeric($argv[1]) && $argv[1] > 0 ? [0 => $argv[1]] : [0 => false]));
|
|
} catch (Exception $e) {
|
|
echo $e->getMessage();
|
|
}
|