Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gravityblast/musicbrainz_cli
- Owner: gravityblast
- License: mit
- Created: 2013-08-06T10:44:26.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-24T03:12:39.000Z (almost 10 years ago)
- Last Synced: 2023-04-11T01:05:58.808Z (over 1 year ago)
- Language: Ruby
- Size: 152 KB
- Stars: 5
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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