lib/models/music_brainz/release_group.rb in musicbrainz-0.4.9 vs lib/models/music_brainz/release_group.rb in musicbrainz-0.4.10
- old
+ new
@@ -4,10 +4,10 @@
@releases
def releases
if @releases.nil? and not self.id.nil?
@releases = []
- Nokogiri::XML(MusicBrainz.load('http://musicbrainz.org/ws/2/release/?release-group=' + self.id + '&limit=100')).css('release').each do |r|
+ Nokogiri::XML(MusicBrainz.load('http://musicbrainz.org/ws/2/release/?release-group=' + self.id + '&inc=media&limit=100')).css('release').each do |r|
@releases << MusicBrainz::Release.parse_xml(r)
end
end
@releases.sort{ |a, b| a.date <=> b.date }
end