Author: asterix Date: 2007-09-08 23:25:14 +0200 (Sat, 08 Sep 2007) New Revision: 8751
Modified: trunk/src/music_track_listener.py Log: prevent TB when rhythmbox is paused
Modified: trunk/src/music_track_listener.py =================================================================== --- trunk/src/music_track_listener.py 2007-09-07 21:21:05 UTC (rev 8750) +++ trunk/src/music_track_listener.py 2007-09-08 21:25:14 UTC (rev 8751) @@ -233,6 +233,8 @@ '/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