mirror of
https://github.com/phin05/discord-rich-presence-plex
synced 2024-11-21 09:03:02 +00:00
Tweaks
This commit is contained in:
parent
b66eae9b6b
commit
0c9bd7122d
4 changed files with 8 additions and 5 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
A Python script that displays your [Plex](https://www.plex.tv/) status on [Discord](https://discord.com/) using [Rich Presence](https://discord.com/developers/docs/rich-presence/how-to).
|
||||
|
||||
Current Version: 2.3.1
|
||||
Current Version: 2.3.2
|
||||
|
||||
## Getting Started
|
||||
|
||||
|
@ -51,9 +51,9 @@ The script must be running on the same machine as your Discord client.
|
|||
|
||||
### Buttons
|
||||
|
||||
A maximum of 2 buttons can be displayed in your Rich Presence.
|
||||
Discord can display up to 2 buttons in your Rich Presence.
|
||||
|
||||
Due to a strange Discord bug, buttons displayed in your Rich Presence are unresponsive to your own clicks, but other users are able to click on them to open their corresponding URLs.
|
||||
Due to a strange Discord bug, these buttons are unresponsive or exhibit strange behaviour towards your own clicks, but other users are able to click on them to open their corresponding URLs.
|
||||
|
||||
#### Dynamic Button URLs
|
||||
|
||||
|
|
|
@ -195,7 +195,10 @@ class PlexAlertListener(threading.Thread):
|
|||
largeText = "Watching a TV show"
|
||||
thumb = item.grandparentThumb
|
||||
if state != "playing":
|
||||
stateStrings.append(f"{formatSeconds(viewOffset / 1000, ':')} elapsed")
|
||||
if config["display"]["useRemainingTime"]:
|
||||
stateStrings.append(f"{formatSeconds((item.duration - viewOffset) / 1000, ':')} left")
|
||||
else:
|
||||
stateStrings.append(f"{formatSeconds(viewOffset / 1000, ':')} elapsed")
|
||||
stateText = " · ".join(stateString for stateString in stateStrings if stateString)
|
||||
elif mediaType == "track":
|
||||
title = item.title
|
||||
|
|
|
@ -2,7 +2,7 @@ import os
|
|||
import sys
|
||||
|
||||
name = "Discord Rich Presence for Plex"
|
||||
version = "2.3.1"
|
||||
version = "2.3.2"
|
||||
|
||||
plexClientID = "discord-rich-presence-plex"
|
||||
discordClientID = "413407336082833418"
|
||||
|
|
Loading…
Reference in a new issue