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