X-Git-Url: https://git.ktnx.net/?a=blobdiff_plain;f=lib%2FApp%2FMPD%2FFeeder%2FCommand.pm;h=9a425be023bb419fc5952b7fb7fc7c22de0f3492;hb=4404a46e92de24d8f6db57109c62be71ffbd47be;hp=5c94a756ceef25e26375a6adb9f2a98405147f94;hpb=7c6d525e11f4c624f21de3a2473b734c2bdd7a31;p=mpd-feeder.git diff --git a/lib/App/MPD/Feeder/Command.pm b/lib/App/MPD/Feeder/Command.pm index 5c94a75..9a425be 100644 --- a/lib/App/MPD/Feeder/Command.pm +++ b/lib/App/MPD/Feeder/Command.pm @@ -3,6 +3,7 @@ package App::MPD::Feeder::Command; use strict; use warnings; use utf8; +use feature 'say'; use Log::Any qw($log); use Object::Pad; @@ -54,6 +55,15 @@ isa App::MPD::Feeder { return 0; } + if ( $cmd eq 'list-unwanted-artists' ) { + die "This command has no arguments\n" if @args; + $self->set_db_needs_update(0); + my $count = $self->db->walk_unwanted_artists( sub { say @_ } ); + say "Total unwanted artists: $count"; + + return 0; + } + if ( $cmd eq 'add-unwanted-album' ) { die "NOT IMPLEMENTED\n"; }