Class | MusicBrainz::Model::Disc |
In: |
lib/rbrainz/model/disc.rb
|
Parent: | Object |
Represents an audio CD.
A disc has a disc ID, which is calculated from the CD‘s table of contents (TOC). It also can include the numbers of sectors on the CD.
The disc id is mainly used to lookup a release in the MusicBrainz database the matches a given disc id. See Webservice::ReleaseFilter for details on this.
If you need to calculate disc IDs you should install the mb-discid package. It allows you to calculate the disc ID for an audio CD.
Example:
require 'rbrainz' require 'mb-discid' discid = MusicBrainz::DiscID.new discid.read disc = MusicBrainz::Model::Disc.new disc.id = discid
See: | wiki.musicbrainz.org/DiscID for more information about MusicBrainz disc IDs. |
See: | rbrainz.rubyforge.org/mbdiscid/api/ |