From c7039838181f46159986ef0db531f9f863688a0d Mon Sep 17 00:00:00 2001 From: Paul WOISARD Date: Wed, 3 Jan 2024 22:14:26 +0100 Subject: [PATCH] correction bug Discord RPC --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 9a96552..cb9c328 100644 --- a/main.py +++ b/main.py @@ -49,7 +49,7 @@ def is_discord_running(): from pypresence import Presence def update_discord_rpc(title, artist, image, mainwindow): - if not is_discord_running(): + if is_discord_running(): try: mainwindow.RPC.update(details=title, state=artist, large_image=image, large_text="Entrain d'écouter") print("Réussite de la mise à jour du RPC Discord")