$postProcess->processAnime(); break; case 'book': $postProcess->processBooks(); break; case 'console': $postProcess->processConsoles(); break; case 'games': $postProcess->processGames(); break; case 'nfo': $postProcess->processNfos($nntp, '', isset($argv[3]) && in_array($argv[3], $charArray) ? $argv[3] : ''); break; case 'movies': $postProcess->processMovies('', isset($argv[3]) && in_array($argv[3], $charArray) ? $argv[3] : ''); break; case 'music': $postProcess->processMusic(); break; case 'pre': break; case 'sharing': $postProcess->processSharing($nntp); break; case 'spotnab': $postProcess->processSpotnab(); break; case 'tv': $postProcess->processTV('', isset($argv[3]) && in_array($argv[3], $charArray) ? $argv[3] : ''); break;
$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]); } } } }