prevent TB when rhythmbox is paused

This commit is contained in:
Yann Leboulanger 2007-09-08 21:25:14 +00:00
parent bc53dbbef7
commit 4e1edc3d01
1 changed files with 2 additions and 0 deletions

View File

@ -233,6 +233,8 @@ class MusicTrackListener(gobject.GObject):
'/org/gnome/Rhythmbox/Player'), 'org.gnome.Rhythmbox.Player')
rbshell = dbus.Interface(rbshellobj, 'org.gnome.Rhythmbox.Shell')
uri = player.getPlayingUri()
if not uri:
return None
props = rbshell.getSongProperties(uri)
info = self._rhythmbox_properties_extract(props)
self._last_playing_music = info