From 2bcce54df75d2802e0208255aa97b12dfe080ec4 Mon Sep 17 00:00:00 2001 From: Jamie Miller Date: Fri, 26 Sep 2025 11:58:24 +0000 Subject: [PATCH] Corrected flags and once more corrected validation --- poller.pl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/poller.pl b/poller.pl index 9fe907d..62d4cf3 100644 --- a/poller.pl +++ b/poller.pl @@ -17,7 +17,7 @@ use URI::Escape; # --- Environment Variables --- use constant LIDARR_BASE => $ENV{LIDARR_BASE} || 'http://localhost:8686'; -getopts('bfhv'); +getopts('f'); my $fresh_result = defined $::opt_f ? $::opt_f : 0; # vs STALE @@ -174,9 +174,5 @@ sub validate { } } } - if (@warnings) { - warn 'WARNING: ' . join(', ', @warnings) . "\n"; - return 0; - } - return 1; + return @warnings; } \ No newline at end of file