X-Git-Url: https://diplodocus.org/git/flac-archive/blobdiff_plain/2d9012033ed415b9d851649ec7e206072927f5a3..00f46bd354b18e53b46d84a1101f49136a0fc5cb:/fa-flacd diff --git a/fa-flacd b/fa-flacd index 69566ac..aeeff3c 100755 --- a/fa-flacd +++ b/fa-flacd @@ -65,16 +65,6 @@ sub get_tags { return ($artist, $album, $discnum, @tags); } -# Hash of Hashes of Lists Push -sub hhlp { - my $hash = shift; - my $key1 = shift; - my $key2 = shift; - my $val = shift; - - return push(@{$hash->{$key1}->{$key2}}, $val); -} - sub bork_tags { my $h = shift; my @result; @@ -122,7 +112,7 @@ sub flac { my (@bork, @titles); for my $tag (@tags) { if ($tag =~ /^([^[]+)\[(\d+)]=(.*)/) { - hhlp(\%things, $2, $1, $3); + push(@{$things{$2}->{$1}}, $3); } elsif ($tag =~ /^ARTIST=/) { push(@artist, $tag); } else {