Git Product home page Git Product logo

musicbrainz's People

Contributors

gabriel avatar inkstak avatar jerimiahmilton avatar pat avatar poweredbyrobots avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

musicbrainz's Issues

output JSON ?

Hi, the musicbrainz API as a 'fmt' arg that you can set to 'json'.
Is there something similar with your gem ?
Thanks !

Cannot coerce property "video" from TrueClass

This error crops up from time to time when querying recordings.

The full error is:

MusicBrainz error: Cannot coerce property "video" from TrueClass to #<Proc:0x0xxxxxxxxxxxxxxx@gempath/musicbrainz-e83fd26e2b25/lib/musicbrainz/models/recording.rb:11 (lambda)>: undefined method `to_i' for true:TrueClass

From my experience, this value comes in as either nil or True. When it's True, we get this error.

Ruby 3 incompatibility calling release_groups?

When calling release_groups:

client = MusicBrainz::Client.new
albums = client.release_groups(artist: "2921ca1d-206e-411a-8d2e-e12494dcfa9a", includes: "genres")
ArgumentError: wrong number of arguments (given 3, expected 2)
/Users/gabe/.rvm/gems/ruby-3.0.2/bundler/gems/musicbrainz-8676f0dab605/lib/musicbrainz/client.rb:66:in `lookup'
/Users/gabe/.rvm/gems/ruby-3.0.2/bundler/gems/musicbrainz-8676f0dab605/lib/musicbrainz/client.rb:35:in `block (2 levels) in <class:Client>'

It works if I monkey patch it be explicitly defined:

module MusicBrainz
  class Client
    def release_group(uid, **options)
      lookup("release-group", uid, **options) do |json|
        MusicBrainz::ReleaseGroup.new json
      end
    end
  end
end

Is this because of change in ruby 3 related to positional and keyword arguments? https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/

Is this ready to be used?

Hey,

Just came across your fork of this and I'm super excited the most recent commit was a few days ago! I'm hoping to use this to prototype a project, glad you're doing this in Json vs Xml. Is this ready to clone and hack with? Happy to contribute too

Where should I define the configuration ?

Hi!
First, thanks you for making this ! All other Musicbrainz gems seems outdated since a long time ago. Yours is more than welcome !

I'm a Ruby newbie so sorry for this question :
Where should I define the configuration ?

MusicBrainz.configure do |c|
  c.app_name    = 'MyApp'
  c.app_version = '0.0.1.alpha'
  c.contact     = '[email protected]'
end

client = MusicBrainz::Client.new

I would like it to be shared by several files within my app, should I put this somewhere in /config ?
Thanks !

Getting track credits?

I'm wondering how to get track credits (musicians who played on a release) with includes %w()

ruby_dep dependency not compatible with Ruby 3

Hi, I get this notice when trying to update to Ruby 3

ruby_dep-1.5.0 requires ruby version >= 2.2.5, ~> 2.2, which is incompatible
with the current version, ruby 3.0.2p107

Not supported ?
Thanks for your good work !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.