mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Update PPA handling
This commit is contained in:
@@ -5,6 +5,7 @@ declare(strict_types=1);
|
||||
namespace App\Services\AdditionalProcessing\Config;
|
||||
|
||||
use App\Models\Settings;
|
||||
use App\Services\AdditionalProcessing\AdditionalCandidateQuery;
|
||||
|
||||
/**
|
||||
* Configuration DTO for additional post-processing.
|
||||
@@ -112,8 +113,12 @@ final readonly class ProcessingConfiguration
|
||||
$this->segmentsToDownload = (int) (Settings::settingValue('segmentstodownload') ?: 2);
|
||||
$this->maximumRarSegments = (int) (Settings::settingValue('maxpartsprocessed') ?: 3);
|
||||
$this->maximumRarPasswordChecks = max((int) (Settings::settingValue('passchkattempts') ?: 1), 1);
|
||||
$this->maxSizeGB = (int) (Settings::settingValue('maxsizetopostprocess') ?: 100);
|
||||
$this->minSizeMB = (int) (Settings::settingValue('minsizetopostprocess') ?: 100);
|
||||
// Delegate to AdditionalCandidateQuery so size-filter semantics
|
||||
// (explicit '0' means disabled, empty/null means default) are owned
|
||||
// in one place and shared between the bucket query and the per-worker
|
||||
// fetch.
|
||||
$this->maxSizeGB = AdditionalCandidateQuery::maxSizeGB();
|
||||
$this->minSizeMB = AdditionalCandidateQuery::minSizeMB();
|
||||
$this->alternateNNTP = (bool) config('nntmux_nntp.use_alternate_nntp_server');
|
||||
$this->ffmpegDuration = (int) (Settings::settingValue('ffmpeg_duration') ?: 5);
|
||||
$this->addPAR2Files = (bool) config('nntmux_settings.add_par2');
|
||||
|
||||
Reference in New Issue
Block a user