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")