# To be added to CUE.pm - I wrote it verbose for testing - should be tightened and get rid of local variables. } elsif ($line =~ /^(?:REM\s+)?(ARTWORK)\s+\"(.*)\"/i) { my $artfilename = $2; $artfilename = Slim::Utils::Misc::fixPath($artfilename, $baseDir); if (defined $artfilename && !-r $artfilename) { eval { my $artPath = Slim::Utils::Misc::pathFromFileURL($artfilename); my $content = read_file($artPath, 'binmode' => ':raw'); $cuesheet->{'ARTWORK'} = $content; my $l = length($content); main::INFOLOG && $log->info("ARTWORK file [$artfilename] (len $l) found for cue"); }; if ($@) { $log->warn("ARTWORK file [$artfilename] cannot be read for cue: $@"); } } else { $log->warn("ARTWORK file [$artfilename] not found for cue"); }