Skip to content
This repository has been archived by the owner on Jun 1, 2019. It is now read-only.

Commit

Permalink
Fix the song title for autoplay songs; DBus didn't have titles before
Browse files Browse the repository at this point in the history
  • Loading branch information
danopia committed Feb 6, 2010
1 parent 121ae59 commit 33e0d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbus-interface.rb
Expand Up @@ -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
Expand Down

0 comments on commit 33e0d2d

Please sign in to comment.