Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : apps/euphoria
Dir : e17/apps/euphoria/lib Modified Files: playlist_item.rb playlist.rb Log Message: nicer fix =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/euphoria/lib/playlist_item.rb,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- playlist_item.rb 2 May 2005 14:39:09 -0000 1.3 +++ playlist_item.rb 2 May 2005 14:55:15 -0000 1.4 @@ -1,4 +1,4 @@ -# $Id: playlist_item.rb,v 1.3 2005/05/02 14:39:09 tsauerbeck Exp $ +# $Id: playlist_item.rb,v 1.4 2005/05/02 14:55:15 tsauerbeck Exp $ class PlaylistItem attr_reader :id, :edje @@ -21,7 +21,7 @@ end def method_missing(method) - @props[method] || "unknown" + @props[method] end def duration =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/euphoria/lib/playlist.rb,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- playlist.rb 28 Apr 2005 08:17:45 -0000 1.11 +++ playlist.rb 2 May 2005 14:55:15 -0000 1.12 @@ -1,4 +1,4 @@ -# $Id: playlist.rb,v 1.11 2005/04/28 08:17:45 tsauerbeck Exp $ +# $Id: playlist.rb,v 1.12 2005/05/02 14:55:15 tsauerbeck Exp $ require "euphoria/playlist_item" @@ -43,6 +43,8 @@ @xmms.broadcast_medialib_entry_changed.notifier do |res| @xmms.medialib_get_info(res.value).notifier do |res2| props = res2.value + props.default = "unknown" + find_all { |i| i.id == props[:id] }.each do |item| item.properties = props ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs