has $cfg_file :reader;
has $opt :reader;
has $db :reader;
- has $db_needs_update = 1;
+ has $db_needs_update :writer = 1;
has $mpd :reader;
use constant DEFAULT_CONFIG_FILE => '/etc/mpd-feeder/mpd-feeder.conf';
die "Missing command arguments\n" unless @args;
$self->set_db_needs_update(0);
for my $artist (@args) {
- if ( $self->db_add_unwanted_artist($artist) ) {
+ if ( $self->db->add_unwanted_artist($artist) ) {
$log->info(
"Artist '$artist' added to the unwanted list\n");
}
die "Missing command arguments\n" unless @args;
$self->set_db_needs_update(0);
for my $artist (@args) {
- if ( $self->db_del_unwanted_artist($artist) ) {
+ if ( $self->db->del_unwanted_artist($artist) ) {
$log->info(
"Artist '$artist' deleted from the unwanted list\n");
}