From 767d88f3f22c34523ef143954b8ab6b8eb286f9c Mon Sep 17 00:00:00 2001 From: Bruno Henrique Paiva Date: Wed, 18 Dec 2024 10:34:44 -0300 Subject: [PATCH] Use Listening activity type in Discord RPC --- src/tauon/t_modules/t_main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tauon/t_modules/t_main.py b/src/tauon/t_modules/t_main.py index 5393e061d..c811b5c54 100644 --- a/src/tauon/t_modules/t_main.py +++ b/src/tauon/t_modules/t_main.py @@ -380,7 +380,7 @@ # logging.exception("Unable to import rpc, Discord Rich Presence will be disabled.") discord_allow = False try: - from pypresence import Presence + from pypresence import Presence, ActivityType except ModuleNotFoundError: logging.warning("Unable to import pypresence, Discord Rich Presence will be disabled.") except Exception: @@ -23860,6 +23860,7 @@ def discord_loop() -> None: large_image = url small_image = "tauon-standard" RPC.update( + activity_type = ActivityType.LISTENING, pid=pid, state=album, details=title, @@ -23870,6 +23871,7 @@ def discord_loop() -> None: else: #logging.info("Discord RPC - Stop") RPC.update( + activity_type = ActivityType.LISTENING, pid=pid, state="Idle", large_image="tauon-standard")