Skip to content

Commit

Permalink
Update to 1.11.3
Browse files Browse the repository at this point in the history
- A small fix for the Discord Rich Presence plugin.
  • Loading branch information
deeffest committed Oct 9, 2024
1 parent accded2 commit cdea134
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
8 changes: 6 additions & 2 deletions core/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit cdea134

Please sign in to comment.