Gnus development mailing list
 help / color / mirror / Atom feed
From: Matt Simmons <simmonmt@acm.org>
Subject: Re: all you MP3 people out there... a fix for lars!
Date: 10 Nov 1998 23:10:24 -800	[thread overview]
Message-ID: <yfqg1bq66xr.fsf@acm.org> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "07 Nov 1998 14:54:49 +0100"

>>>>> "Lars" == Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

    Lars> DISCID=46074b06

    Lars> That DISCID thing looks really clever, doesn't it?  32 bits; that
    Lars> should be four billion possibilities, right?

Hah!  Shows how little you actually grasp of the deeper meanings of
the CDDB format.  You actually thought that the DISCID was a number!
What could possibly have made you think that?  Was it that it looks
like a base 16 number?  pfeh.  Maybe it was the fact that the
components of the DISCID are themselves numbers?  uhm, no.

If you gain enlightenment, you will of course realize that the DISCID
is... a string!  Why else would a request for DISCID 410fd10 fail to
match the record with DISCID 0410fd10?  Specifically, why else would
it whine about a badly formed DISKID?  Why else would I have to ask
Bill to apply the following to cddb.el to work around a galette bug?
Grrr.

---------------------------------------------------8<-----------------
RCS/cddb.el,v  -->  standard output
revision 1.2
--- -   Tue Nov 10 23:07:54 1998
+++ cddb.el     Tue Nov 10 23:07:45 1998
@@ -262,7 +262,7 @@
       
       ;; Get the disk ID
       (re-search-forward "^CDROM: disk id = \\([a-f0-9]+\\)" nil t)
-      (setq discid (match-string 1))
+      (setq discid (format "%08x" (string-to-int (match-string 1) 16)))
 
       (list discid num-tracks length track-info))))
 

----------------->8---------------------------------------------------

Matt

-- 
     Matt Simmons  -  simmonmt@acm.org  -  http://www.netcom.com/~simmonmt
     The man who smiles when things go wrong has thought of someone he can
			   blame it on.  --Jones' Law


      parent reply	other threads:[~1998-11-11  7:10 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-28 18:16 William M. Perry
1998-10-28 22:24 ` Wes Hardaker
1998-10-29  1:04   ` William M. Perry
1998-10-29  1:28     ` Wes Hardaker
1998-10-29  2:11       ` Harald Meland
1998-10-29  5:05         ` Wes Hardaker
1998-10-29  5:20         ` David Hedbor
1998-10-29  7:21         ` Lars Magne Ingebrigtsen
1998-10-29 18:00           ` Wes Hardaker
1998-10-31 13:32             ` Lars Magne Ingebrigtsen
1998-11-02 18:59               ` Wes Hardaker
1998-11-04  5:51               ` Matt Simmons
1998-11-10 16:22                 ` Justin Sheehy
     [not found]                   ` <x7g1br8nh3.fsf@peorth.gweep.net>
1998-11-10 21:35                     ` David Hedbor
1998-11-12 21:34                       ` Brian Edmonds
1998-10-29  2:17   ` Mark R. Boyns
1998-10-29 11:15   ` Lars Magne Ingebrigtsen
1998-10-29 17:56     ` Wes Hardaker
1998-10-29 21:09     ` Darren Stalder
1998-10-31 13:31       ` Lars Magne Ingebrigtsen
1998-11-01 16:18         ` William M. Perry
     [not found]         ` <x7btmsejes.fsf@peorth.gweep.net>
1998-11-01 17:22           ` Brian Edmonds
1998-11-01 20:46             ` William M. Perry
1998-11-07 13:41               ` Lars Magne Ingebrigtsen
1998-10-29 12:57   ` Darren/Torin/Who Ever...
1998-10-29 17:57     ` Wes Hardaker
1998-10-29 20:55       ` Darren Stalder
1998-10-30 16:10         ` William M. Perry
1998-10-30 18:10           ` William M. Perry
1998-11-04  8:08             ` Matt Simmons
1998-11-04 10:42               ` William M. Perry
1998-11-05  8:05                 ` Matt Simmons
1998-11-05 13:15                   ` William M. Perry
1998-11-07 13:54                     ` Lars Magne Ingebrigtsen
1998-11-09 16:05                       ` Wes Hardaker
1998-11-10  4:51                         ` Lars Magne Ingebrigtsen
1998-11-11  7:10                       ` Matt Simmons [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yfqg1bq66xr.fsf@acm.org \
    --to=simmonmt@acm.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).