Burgestrand / spotify

Low-level Ruby bindings for libspotify, the official Spotify C API
https://rubygems.org/gems/spotify
Other
147 stars 17 forks source link

added_at not available #31

Closed jaredmoody closed 9 years ago

jaredmoody commented 9 years ago

I'd like to be able to access the added_at when a track was added, but that data isn't recorded when the tracks for a playlist are fetched in Playlist#tracks.

I'd be happy to submit a PR if you would like to add this and if you might give me a little bit of guidance on how you would like it added.

It's a little funny since it's data that describes the relationship between the objects, and not exactly an attribute on the Track or Playlist.

Burgestrand commented 9 years ago

I'm not sure I understand you. The function you mention is available here: https://github.com/Burgestrand/spotify/blob/master/lib/spotify/api/playlist.rb#L60

attach_function :playlist_track_create_time, [ Playlist, :int ], :int
jaredmoody commented 9 years ago

Geez I was looking a this repo and rspotify at the same time and I posted in the wrong one, sorry about that :P

Burgestrand commented 9 years ago

I understand. No worries. :)