Update PPA class

This commit is contained in:
DariusIII
2019-03-01 13:48:59 +01:00
parent c614c29615
commit 46d074ebb6
2 changed files with 9 additions and 8 deletions
@@ -421,17 +421,17 @@ class ProcessAdditional
$this->_echoCLI = ($options['Echo'] && config('nntmux.echocli') && (strtolower(PHP_SAPI) === 'cli'));
$this->_nntp = $options['NNTP'] instanceof NNTP ? $options['NNTP'] : new NNTP(['Echo' => $this->_echoCLI]);
$this->_nntp = $options['NNTP'] ?? new NNTP(['Echo' => $this->_echoCLI]);
$this->_nzb = $options['NZB'] instanceof NZB ? $options['NZB'] : new NZB();
$this->_nzb = $options['NZB'] ?? new NZB();
$this->_archiveInfo = new ArchiveInfo();
$this->_categorize = $options['Categorize'] instanceof Categorize ? $options['Categorize'] : new Categorize();
$this->_nameFixer = $options['NameFixer'] instanceof NameFixer ? $options['NameFixer'] : new NameFixer(['Echo' =>$this->_echoCLI, 'Groups' => null, 'Categorize' => $this->_categorize]);
$this->_releaseExtra = $options['ReleaseExtra'] instanceof ReleaseExtra ? $options['ReleaseExtra'] : new ReleaseExtra();
$this->_releaseImage = $options['ReleaseImage'] instanceof ReleaseImage ? $options['ReleaseImage'] : new ReleaseImage();
$this->_categorize = $options['Categorize'] ?? new Categorize();
$this->_nameFixer = $options['NameFixer'] ?? new NameFixer(['Echo' =>$this->_echoCLI, 'Categorize' => $this->_categorize]);
$this->_releaseExtra = $options['ReleaseExtra'] ?? new ReleaseExtra();
$this->_releaseImage = $options['ReleaseImage'] ?? new ReleaseImage();
$this->_par2Info = new Par2Info();
$this->_nfo = $options['Nfo'] instanceof Nfo ? $options['Nfo'] : new Nfo();
$this->sphinx = $options['SphinxSearch'] instanceof SphinxSearch ? $options['SphinxSearch'] : new SphinxSearch();
$this->_nfo = $options['Nfo'] ?? new Nfo();
$this->sphinx = $options['SphinxSearch'] ?? new SphinxSearch();
$this->ffmpeg = FFMpeg::create(['timeout' => Settings::settingValue('..timeoutseconds')]);
$this->ffprobe = FFProbe::create();
$this->mediaInfo = new MediaInfo();