lib/jotify/media.rb in spotify-api-0.0.6 vs lib/jotify/media.rb in spotify-api-0.0.7

- old
+ new

@@ -9,11 +9,11 @@ self.to_s end def to_h h = { :id=>self.getId(), :popularity=> popularity.nan? ? 0.0 : popularity.to_f } - h[:url] = self.link if self.respond_to?(:link) + h[:url] = self.link.asHTTPLink if self.respond_to?(:link) h end end class Playlist @@ -37,10 +37,10 @@ def to_h { :id => getId(), :name=> name, - :url => link, + :url => link.asHTTPLink, :tracks => tracks.map { |t| t.to_h }, :author => author, :revision => revision, :collaborative => collaborative }