Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: Re: all you MP3 people out there... a fix for lars!
Date: 07 Nov 1998 14:54:49 +0100	[thread overview]
Message-ID: <m3hfwbsj4m.fsf@sparky.gnus.org> (raw)
In-Reply-To: wmperry@aventail.com's message of "05 Nov 1998 08:15:55 -0500"

wmperry@aventail.com (William M. Perry) writes:

>   One thing I _cannot_ believe is that the cddb people require a specific
> _ordering_ to the stuff in the query.  Completely BGOUS.  That's the whole
> point of having NAMES for those damn things in the format, right?  *sigh*
> Even after 5 1/2 years of working on web stuff, people still come up with
> ways to disgust me. :)

Everything about the cddb format disgusts me.

Let me count you the ways, but first, here's a typical cddb entry:

# xmcd CD database file
#
# Track frame offsets:
#	150
#	15660
#	42115
#	70277
#	94335
#	127810
#
# Disc length: 1869 seconds
#
# Revision: 0
# Submitted via: IdiotJukebox 1.0 (Emacs 20.3.1)
#
DISCID=46074b06
DTITLE=Isotope 217 / The Unstable Molecule
TTITLE0=Kryptonite Smokes The Red Line
TTITLE1=Beneath the Undertow
TTITLE2=La Jeteé
TTITLE3=Phonometrics
TTITLE4=Prince Namor
TTITLE5=Audio Boxing
EXTD=
EXTT0=
EXTT1=
EXTT2=
EXTT3=
EXTT4=
EXTT5=
PLAYORDER=

Ok, we have something that looks like comments first, and then data.
But, no.  Everything in the "comments" section has to be there, and
has to be there in that order.  First we have the track frames, and we
see that they cleverly neglected to include the concluding track
frame, which means that there really is no way to say exactly how long
a CD is.  One can approximate by looking at the "Disc length" entry,
but that's only with second granularity.  So, they throw away info.

That DISCID thing looks really clever, doesn't it?  32 bits; that
should be four billion possibilities, right?  Nope.  The last byte is
the number of tracks, so this byte is usually in the 09-0f range.  The
two previous bytes are the track offsets added together (!), which
means that the range used here is limited as well.  That leaves the
first byte, which is actually uses a bit of %-ing to get at, which
means that it's pseudo-random.  I guesstimate that the likelihood that
two cd's generate the same ID is about one in a million, which is
quite a feat.

Next, we have the DTITLE.  We see that they cleverly put the artist
and the album title in the same string, separated by " / ", which
means that the "/" characted can't be included in an artist name or
album title.  Groovy!

Then the track titles follow, and if a title is longer than 70
characters, one gets

TTITLE0=Big Car (Remix Vocal Edit) very very very very very very very very
TTITLE0= very long title

Clever, huh?  

Then, at the end, we have the comments, and no client ever fills out
track comments, but they have to be there anyway.

I really couldn't have come up with a more stupid format if I were
stoned out on alcohol.  It's totally unflexible, loses information,
un-extendable, disallows certain inputs, and is verbose.

Ptui.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen


  reply	other threads:[~1998-11-07 13:54 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 [this message]
1998-11-09 16:05                       ` Wes Hardaker
1998-11-10  4:51                         ` Lars Magne Ingebrigtsen
1998-11-11  7:10                       ` Matt Simmons

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=m3hfwbsj4m.fsf@sparky.gnus.org \
    --to=larsi@gnus.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).