Synced with xmmsclient API updates.
authorTilman Sauerbeck <tilman@code-monkey.de>
Thu, 23 Aug 2007 17:56:44 +0000 (19:56 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Thu, 23 Aug 2007 17:56:44 +0000 (19:56 +0200)
bin/euphoria
lib/playlist.rb

index d2ad38f..e2077a2 100644 (file)
@@ -110,7 +110,7 @@ class Euphoria
                end
 =end
 
-               handle_current_pos(@xmms.playlist_current_pos.wait)
+               handle_current_pos(@xmms.playlist.current_pos.wait)
        end
 
        def show
index 0df6ff1..e695e97 100644 (file)
@@ -12,12 +12,14 @@ class Playlist < Array
                @eet = nil
                @container = nil
 
-               @xmms.playlist_list.notifier { |res| push(*res.value) }
+               @xmms.playlist.entries.notifier { |res| push(*res.value) }
 
-               begin
-                       @current_pos = @xmms.playlist_current_pos.wait.value
-               rescue Xmms::Result::ValueError
-                       @current_pos = nil
+               @xmms.playlist.current_pos.notifier do |res|
+                       begin
+                               @current_pos = res.value
+                       rescue Xmms::Result::ValueError
+                               @current_pos = nil
+                       end
                end
 
                @xmms.broadcast_playlist_current_pos.notifier do |res|