From 7e0be1bf14016e252d04987f824f44c79e7a00b5 Mon Sep 17 00:00:00 2001 From: gkeep Date: Mon, 29 Jun 2020 23:02:25 +0300 Subject: [PATCH] [modules/spotify] Fix formatting Fixed by black --- bumblebee_status/modules/contrib/spotify.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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")