Tweak the DISCID calculation slightly
authorSteve McIntyre <steve@einval.com>
Sun, 26 Oct 2014 01:13:49 +0000 (01:13 +0000)
committerSteve McIntyre <steve@einval.com>
Sun, 26 Oct 2014 01:13:49 +0000 (01:13 +0000)
abcde

diff --git a/abcde b/abcde
index 4a45f27..76601ae 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -491,7 +491,7 @@ makeids ()
 
        case "$CDDBMETHOD" in
                cddb)
-                       printf -v DISCID "%08lx" $(( ($CDDBCKSUM % 0xff) << 24 | $TOTALTIME << 8 | $TRACKS))
+                       printf -v DISCID "%08lx" $(( ($CDDBCKSUM % 0xff) * 16777216 | $TOTALTIME * 256 | $TRACKS))
                        ;;
                musicbrainz)
                        # FIXME: don't assume the first track is 1