Initialize a song's properties to an empty hash.
[euphoria.git] / lib / playlist_item.rb
index 2a2deacbd4e26a976baa158b8a53edb98246c375..5b89ea44ba8eb3a7c078b406a706f238f8af89a2 100644 (file)
@@ -1,5 +1,3 @@
-# $Id: playlist_item.rb,v 1.21 2006/07/29 01:55:31 tilman Exp $
-
 class PlaylistItem
        attr_reader :id, :edje, :position, :selected, :hilighted
 
@@ -116,6 +114,14 @@ class PlaylistItem
                set_parts_text unless @edje.nil?
        end
 
+       def track_info_message
+               unless @props[:channel].nil?
+                       Edje::Message.new(0, channel)
+               else
+                       Edje::Message.new(0, artist, title, album)
+               end
+       end
+
        private
        def set_parts_text
                tmp = (duration == -1) ? "" :