Corrected flags and once more corrected validation

This commit is contained in:
2025-09-26 11:58:24 +00:00
parent 61c4e1ee4e
commit 2bcce54df7

View File

@@ -17,7 +17,7 @@ use URI::Escape;
# --- Environment Variables --- # --- Environment Variables ---
use constant LIDARR_BASE => $ENV{LIDARR_BASE} || 'http://localhost:8686'; 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 my $fresh_result = defined $::opt_f ? $::opt_f : 0; # vs STALE
@@ -174,9 +174,5 @@ sub validate {
} }
} }
} }
if (@warnings) { return @warnings;
warn 'WARNING: ' . join(', ', @warnings) . "\n";
return 0;
}
return 1;
} }