]> diplodocus.org Git - flac-archive/commitdiff
(get_tags): Fix TITLE regexp; it was mistakenly not using ^ like the
authorepg <>
Sun, 5 Dec 2004 08:23:55 +0000 (08:23 +0000)
committerepg <>
Sun, 5 Dec 2004 08:23:55 +0000 (08:23 +0000)
others.  Also, as follow-up to r1733, document why we don't match = .

flac2mp3

index 88ed955..8964522 100755 (executable)
--- a/flac2mp3
+++ b/flac2mp3
@@ -112,7 +112,10 @@ sub get_tags {
             $album = $value;
         } elsif (/^DATE=/) {
             $date = $value;
-        } elsif (/TITLE/) {
+
+        # Intentionally don't match the = on this one, to support the
+        # TITLE[1] .. TITLE[n] tag style.
+        } elsif (/^TITLE/) {
             push(@titles, $value);
         }
     }