X-Git-Url: https://git.draconx.ca/gitweb/mpdhacks.git/blobdiff_plain/66698921f766b569c784a58d12ca912b32fd94ed..cf01843ff6c5491815e125201767c14ac05b37ca:/mpdmenu.pl diff --git a/mpdmenu.pl b/mpdmenu.pl index e536470..71613c5 100755 --- a/mpdmenu.pl +++ b/mpdmenu.pl @@ -776,6 +776,14 @@ if ($mode eq "top") { $menu //= "MenuMPDRecordings"; my @tracks = sort { $a->{Title} cmp $b->{Title} } grep { $_->{Album} eq $albumname } @recs; + + # Show thumbnails for standalone recordings + my @thumbs = get_item_thumbnails({ small => 1 }, + map { $_->{file} } @tracks); + foreach my $entry (@tracks) { + $entry->{thumb} = shift @thumbs; + } + my @notqueued = update_entry_ids(@tracks); fvwm_cmd("AddToMenu", $menu);