Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gravityblast/musicbrainz_cli

Command Line Interface for the MusicBrainz database
https://github.com/gravityblast/musicbrainz_cli

Last synced: about 10 hours ago
JSON representation

Command Line Interface for the MusicBrainz database

Awesome Lists containing this project

README

        

# MusicbrainzCli

A command line interface to the [Musicbrainz database](http://musicbrainz.org/doc/MusicBrainz_Database)

## Installation

$ gem install musicbrainz_cli

And then execute:

$ musicbrainz-cli

## Usage

This gem uses the [ActiveMusicbrainz](https://github.com/pilu/active_musicbrainz), so you can use its model like the following:

artist = Artist.by_gid '9a709693-b4f8-4da9-8cc1-038c911a61be'
=> #

artist.name
=> "Bonobo"

artist.release_groups.first.type
=> #

artist.release_groups.each{|r| puts r.name }
Black Sands
Dial 'M' for Monkey
Scuba EP
Flutter
Pick Up
Terrapin
Eyesdown
...

artist.release_groups.first.releases.first.mediums
=> [#]

artist.release_groups.first.releases.first.mediums.first.tracks.each{|t| puts t.name}
Prelude
Kiara
Kong
Eyesdown
...

artist.release_groups.first.releases.first.mediums.first.format
=> #

## Author

Andrea Franz - [http://gravityblast.com](http://gravityblast.com)

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request