From cdea13484dd15f0ede0713159defe8c8aca1bb86 Mon Sep 17 00:00:00 2001 From: deeffest Date: Wed, 9 Oct 2024 20:36:05 +0300 Subject: [PATCH] Update to 1.11.3 - A small fix for the Discord Rich Presence plugin. --- changelog.txt | 4 ++++ core/main_window.py | 8 ++++++-- main.py | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index 0d68c05..1d55786 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,7 @@ +### Update 1.11.3 🎉 (October 9, 2024) + +- A small fix for the Discord Rich Presence plugin. + ### Update 1.11.2 🎉 (October 4, 2024) - Small fix for Ad Blocker (Skipper) plugin - now ads are skipped noticeably faster. diff --git a/core/main_window.py b/core/main_window.py index 3b80ad0..8907254 100644 --- a/core/main_window.py +++ b/core/main_window.py @@ -396,12 +396,16 @@ def update_discord_rpc(self): ) except Exception as e: logging.error("An error occurred while updating Discord RPC: " + str(e)) - self.reconnect_discord_rpc() + self.reconnect_discord_rpc(retry_update=True) - def reconnect_discord_rpc(self): + def reconnect_discord_rpc(self, retry_update=False): if self.discord_rpc: try: self.discord_rpc.connect() + logging.info("Reconnected to Discord RPC successfully.") + + if retry_update: + self.update_discord_rpc() except Exception as e: logging.error("An error occurred while reconnecting Discord RPC: " + str(e)) diff --git a/main.py b/main.py index 7a2c410..8356e13 100644 --- a/main.py +++ b/main.py @@ -11,7 +11,7 @@ name = "Youtube-Music-Desktop-Player" author = "deeffest" website = "deeffest.pythonanywhere.com" -version = "1.11.2" +version = "1.11.3" current_dir = os.path.dirname(os.path.abspath(__file__)) def setup_logging():