First push of autoloader for dev branch. Not tested yet.

This commit is contained in:
DariusIII
2015-05-03 23:09:16 +02:00
parent 613b03f876
commit c64a1d8f6e
1276 changed files with 233948 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
<?php
require_once(dirname(__FILE__).'/config.php');
use newznab\processing\PProcess;
$c = new ColorCLI();
if (!isset($argv[1])) {
exit($c->error("This script is not intended to be run manually, it is called from postprocess_threaded.py."));
}
$tmux = new Tmux;
$torun = $tmux->get()->post;
$pieces = explode(' =+= ', $argv[1]);
$postprocess = new PProcess(['Echo' => true]);
if (isset($pieces[6])) {
// Create the connection here and pass
$nntp = new NNTP();
if ($nntp->doConnect() === false) {
exit($c->error("Unable to connect to usenet."));
}
$postprocess->processAdditional($nntp, $argv[1]);
$nntp->doQuit();
} else if (isset($pieces[3])) {
// Create the connection here and pass
$nntp = new NNTP();
if ($nntp->doConnect() === false) {
exit($c->error("Unable to connect to usenet."));
}
$postprocess->processNfos($argv[1], $nntp);
$nntp->doQuit();
} else if (isset($pieces[2])) {
$postprocess->processMovies($argv[1]);
echo '.';
} else if (isset($pieces[1])) {
$postprocess->processTv($argv[1]);
}