diff --git a/bumblebee_status/modules/contrib/spotify.py b/bumblebee_status/modules/contrib/spotify.py index 8c69cde..e75ff9d 100644 --- a/bumblebee_status/modules/contrib/spotify.py +++ b/bumblebee_status/modules/contrib/spotify.py @@ -79,9 +79,13 @@ class Module(core.module.Module): "cmd": self.__cmd + "PlayPause", } playback_status = str( - dbus.Interface(dbus.SessionBus().get_object( - "org.mpris.MediaPlayer2.spotify", "/org/mpris/MediaPlayer2"), "org.freedesktop.DBus.Properties") - .Get("org.mpris.MediaPlayer2.Player", "PlaybackStatus") + dbus.Interface( + dbus.SessionBus().get_object( + "org.mpris.MediaPlayer2.spotify", + "/org/mpris/MediaPlayer2", + ), + "org.freedesktop.DBus.Properties", + ).Get("org.mpris.MediaPlayer2.Player", "PlaybackStatus") ) if playback_status == "Playing": widget.set("state", "playing")