lib/rspotify/playlist.rb in rspotify-0.3.0 vs lib/rspotify/playlist.rb in rspotify-0.3.1
- old
+ new
@@ -24,10 +24,10 @@
if options['owner']
@owner = User.new options['owner']
end
- if options['tracks']
+ if options['tracks'] && options['tracks']['items']
tracks = options['tracks']['items']
@tracks = tracks.map { |t| Track.new t['track'] }
end
super(options)