diff --git a/mmmpd b/mmmpd index 24bcc60..72294fd 100755 --- a/mmmpd +++ b/mmmpd @@ -9,6 +9,8 @@ import time import logging import mpd +# pylint: disable=no-member + NAME = "Mattermost MPD now playing status" VERSION = "1.0.1" @@ -30,7 +32,7 @@ MPD_STATE_PAUSE = "pause" # ---------------- def set_status(emoji, text, expires_datetime): - LOGGER.info(f"Custom status expiring {expires_datetime or 'never'}: :{emoji}: {text}") + LOGGER.info("Custom status expiring %s: :%s: %s", expires_datetime or "never", emoji, text) subprocess.run([ "mmcli", "customstatus", "--until", expires_datetime.isoformat() if expires_datetime else "", @@ -56,7 +58,7 @@ def song_string(song_info): def formatted_status(mpd_client): status = mpd_client.status() state = status.get("state") - LOGGER.debug(f"Player state: {state!r}") + LOGGER.debug("Player state: %r", state) if state not in (MPD_STATE_PLAY, MPD_STATE_PAUSE): return None