]> git.ktnx.net Git - mpd-feeder.git/commitdiff
include wanted playlist size when reporting its current state
authorDamyan Ivanov <dmn@debian.org>
Thu, 11 Nov 2021 14:47:06 +0000 (14:47 +0000)
committerDamyan Ivanov <dmn@debian.org>
Thu, 11 Nov 2021 14:47:06 +0000 (14:47 +0000)
bin/mpd-feeder

index d6f5d6ff3fc423def3e9efd770065da1fdada33a..1d0e23337515e2a627ebe1eac663d43d80aa6900 100755 (executable)
@@ -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 );