void-packages/srcpkgs/lltag/patches/fix_flac_tracknumber_reading.patch
2018-07-16 10:49:12 +02:00

16 lines
550 B
Diff

diff --git lib/Lltag/FLAC.pm lib/Lltag/FLAC.pm
index 8c0186d..5c571a6 100644
--- lib/Lltag/FLAC.pm
+++ lib/Lltag/FLAC.pm
@@ -23,8 +23,9 @@ sub read_tags {
if $status ;
@output = map {
my $line = $_ ;
- $line =~ s/^\s*comment\[\d+\]\s*:\s*(.*)/$1/ ;
- $line =~ s/^TRACKNUMBER=/NUMBER=/ ;
+ $line =~ s/^\s*comment\[\d+\]\s*:\s*(.*)/$1/i ;
+ $line =~ s/^tracknumber=/NUMBER=/i ;
+ $line =~ s/^track number=/NUMBER=/i ;
$line
} ( grep { /comment\[\d+\]/ } @output ) ;
return Lltag::Tags::convert_tag_stream_to_values ($self, @output) ;