using System;
using MusicBrainz;

class MainClass
{
    public static void Main(string[] args)
    {
        var disc = LocalDisc.GetFromDevice ("/dev/cdrom");
        Release release = Release.Query (disc);
        if (release == null) {
            Console.WriteLine ("Didn't find the CD {0}", disc.Id);
        }
        Console.WriteLine ("{0} by {1}", release.GetTitle (), release.GetArtist ().GetName ());
        foreach (var track in release.GetTracks ()) {
            Console.WriteLine ("\t{0}", track.GetTitle ());
        }
    }
}