Skip to content

Commit

Permalink
up version
Browse files Browse the repository at this point in the history
  • Loading branch information
FozerG committed Jun 19, 2024
1 parent 5a8194c commit 8cb16a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
CLIENT_ID = '978995592736944188'

# Версия (tag) скрипта для проверки на актуальность через Github Releases
CURRENT_VERSION = "v1.9.2"
CURRENT_VERSION = "v2.0"

# Ссылка на репозиторий
REPO_URL = "https://github.com/FozerG/WinYandexMusicRPC"
Expand Down Expand Up @@ -102,7 +102,7 @@ def connect_rpc():
return None

@staticmethod
def CheckDiscorAvailable() -> bool:
def discord_available() -> bool:
while True:
if Presence.is_discord_running():
Presence.rpc = Presence.connect_rpc()
Expand All @@ -128,13 +128,13 @@ def discord_was_closed() -> None:
Presence.currentTrack = None
global name_prev
name_prev = None
Presence.CheckDiscorAvailable()
Presence.discord_available()


# Метод для запуска Rich Presence.
@staticmethod
def start() -> None:
Presence.CheckDiscorAvailable()
Presence.discord_available()
Presence.client = Client().init()
Presence.running = True
Presence.currentTrack = None
Expand Down

0 comments on commit 8cb16a0

Please sign in to comment.