Skip to content

Commit

Permalink
Use Listening activity type in Discord RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
brunohpaiva committed Jan 4, 2025
1 parent 9c3658a commit 767d88f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tauon/t_modules/t_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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,
Expand All @@ -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")
Expand Down

0 comments on commit 767d88f

Please sign in to comment.