User:PBryan/mbdiscid
From MusicBrainz Wiki
Jump to navigationJump to searchmbdiscid
Description
The mbdiscid script will compute the MusicBrainz disc ID for an inserted disc, and either:
- submit the disc ID to MusicBrainz through a browser, or
- print the disc ID of the inserted disc.
Dependencies
- Device-Cdio (Ubuntu package: libdevice-cdio-perl)
- Digest-SHA1 (Ubuntu package: libdigest-sha1-perl)
- Getopt-ArgvFile (Ubuntu package: libgetopt-argvfile-perl)
Notes
- This script is tested on Ubuntu 8.10; mileage may vary on other platforms.
Download
License
- This script is licensed under the GPL 2.0 or later.
Usage
Usage: mbdiscid [options]
Options
-
Option Description Default --action=action Action to perform. submit --browser=program Name of program to execute as browser. sensible-browser --device=device CD-ROM device to query. /dev/cdrom --help Display this help message. --mbserver=server MusicBrainz server to query. musicbrainz.org --quiet Quiet operation, no screen output. --verbose Verbose output of progress information.
Actions
The --action option determines what action this script should perform. The choices are:
-
Action Description print Print the disc ID of the inserted disc. submit Submit the disc ID to MusicBrainz through browser.
Configuration file
You can store persistent command-line options in a file called .mbdiscid in your home directory. They will be read as defaults prior to processing any passed command-line options.
Changelog
0.7 (2009-01-13)
- Support discs with multiple data tracks. (IRC: nikki)
0.6 (2009-01-07)
- Initial version released to MusicBrainz.