From b90b9dda037a4e41ac4aa11c80f70cb421c5feb2 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 1 Aug 2015 18:36:30 +0300 Subject: [PATCH 1/1] Fix caching --- lib/App/MusicExpo.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/App/MusicExpo.pm b/lib/App/MusicExpo.pm index c38d2b7..3bdef01 100644 --- a/lib/App/MusicExpo.pm +++ b/lib/App/MusicExpo.pm @@ -134,10 +134,10 @@ sub run { my %files; for my $file (@ARGV) { my $info; - $info = thaw flacinfo $file if $file =~ /\.flac$/i; - $info = thaw mp3info $file if $file =~ /\.mp3$/i; - $info = thaw vorbisinfo $file if $file =~ /\.og(?:g|a)$/i; - $info = thaw mp4info $file if $file =~ /\.mp4|\.aac|\.m4a$/i; + $info = thaw scalar flacinfo $file if $file =~ /\.flac$/i; + $info = thaw scalar mp3info $file if $file =~ /\.mp3$/i; + $info = thaw scalar vorbisinfo $file if $file =~ /\.og(?:g|a)$/i; + $info = thaw scalar mp4info $file if $file =~ /\.mp4|\.aac|\.m4a$/i; next unless defined $info; my $basename = fileparse $file, '.flac', '.mp3', '.ogg', '.oga', '.mp4', '.aac', '.m4a'; $files{$basename} //= []; -- 2.39.2