Created
July 10, 2012 23:02
-
-
Save edwinvdgraaf/3086814 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
playlist = session.container.contents[1] | |
if !playlist.loaded? | |
playlist.load | |
end | |
chached_playlist = playlist.to_link # not optimal but works? | |
playlist.on(:tracks_added) do |tracks, position| | |
playlist = Hallon::Playlist.new chached_playlist | |
playlist.load | |
puts "Added track at position #{position}" | |
playlist.tracks.each do |track| | |
track.load | |
puts "[#{track.name}] has nill added_at: #{track.added_at == nil}" | |
puts "[#{track.name}] has nill adder: #{track.adder == nil}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment