From af6e27bd77856c801ead53dcdca12d4ee754c9f6 Mon Sep 17 00:00:00 2001 From: Username Date: Wed, 18 Feb 2026 00:33:16 +0100 Subject: [PATCH] config: allow ppf.threads = 0 to disable URL cycling --- config.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config.py b/config.py index 5c4eae1..499b047 100644 --- a/config.py +++ b/config.py @@ -45,10 +45,10 @@ class Config(ComboParser): # Validate thread counts (0 allowed for watchd to disable local testing) if self.watchd.threads < 0: errors.append('watchd.threads must be >= 0') - if self.ppf.threads < 1: - errors.append('ppf.threads must be >= 1') - if self.scraper.threads < 1: - errors.append('scraper.threads must be >= 1') + if self.ppf.threads < 0: + errors.append('ppf.threads must be >= 0') + if self.scraper.enabled and self.scraper.threads < 1: + errors.append('scraper.threads must be >= 1 when scraper is enabled') # Validate max_fail if self.watchd.max_fail < 1: