From: Damyan Ivanov Date: Thu, 11 Nov 2021 14:47:06 +0000 (+0000) Subject: include wanted playlist size when reporting its current state X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=9f4529d5a5f6a37562f1d93b35f44bbc8f53c543;p=mpd-feeder.git include wanted playlist size when reporting its current state --- diff --git a/bin/mpd-feeder b/bin/mpd-feeder index d6f5d6f..1d0e233 100755 --- a/bin/mpd-feeder +++ b/bin/mpd-feeder @@ -399,7 +399,8 @@ SQL sub { my $present = scalar @{ $_[0] }; - $log->notice("Playlist contains $present songs"); + $log->notice( "Playlist contains $present songs. Wanted: " + . $opt->target_queue_length ); if ( $present < $opt->target_queue_length ) { $self->queue_songs( $opt->target_queue_length - $present, $callback );