Permalink
Browse files

Fix the song title for autoplay songs; DBus didn't have titles before

  • Loading branch information...
1 parent 121ae59 commit 33e0d2db9f4d6f947f5aec3462859a30a92b01d6 @danopia committed Feb 6, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 dbus-interface.rb
View
@@ -14,7 +14,7 @@ def initialize client, path
dbus_method :now_playing, "out res:s" do
info = @@client.now_playing
next "No song is playing" unless info
- "#{info['Name']} - #{info['ArtistName']} - #{info['AlbumName']}"
+ "#{info['SongName'] || info['Name']} - #{info['ArtistName']} - #{info['AlbumName']}"
end
end
end

0 comments on commit 33e0d2d

Please sign in to comment.