lib/models/music_brainz/track.rb in musicbrainz-0.3.1 vs lib/models/music_brainz/track.rb in musicbrainz-0.4.0
- old
+ new
@@ -1,10 +1,10 @@
module MusicBrainz
class Track
attr_accessor :position, :recording_id, :title, :length
def self.find mbid
- xml = Nokogiri::XML(MusicBrainz.load('http://musicbrainz.org/ws/2/recording/' + mbid))
+ xml = Nokogiri::XML(MusicBrainz.load('http://musicbrainz.org/ws/2/recording/' + mbid + '?limit=100'))
self.parse_xml(xml) unless xml.nil?
end
def self.parse_xml xml
@track = MusicBrainz::Track.new