From 8a4fc409478294a721c82167dfc15091bfaad662 Mon Sep 17 00:00:00 2001 From: tobi-wan-kenobi Date: Tue, 15 Sep 2020 20:27:50 +0200 Subject: [PATCH] Revert "[modules/spotify] properly initialize widgets" This reverts commit aa6238a5c6f5781ebd136810e115ba297ee15a23. --- bumblebee_status/modules/contrib/spotify.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bumblebee_status/modules/contrib/spotify.py b/bumblebee_status/modules/contrib/spotify.py index 77960b7..25bff6f 100644 --- a/bumblebee_status/modules/contrib/spotify.py +++ b/bumblebee_status/modules/contrib/spotify.py @@ -68,8 +68,7 @@ class Module(core.module.Module): } widget.set("state", "next") elif widget_name == "spotify.song": - widget.set("state", "song") - widget.full_text(self.__song) + pass else: raise KeyError( "The spotify module does not have a {widget_name!r} widget".format( @@ -116,6 +115,9 @@ class Module(core.module.Module): widget.set("state", "playing") else: widget.set("state", "paused") + elif widget.name == "spotify.song": + widget.set("state", "song") + widget.full_text(self.__song) except Exception as e: logging.exception(e)