mirror of
https://github.com/phin05/discord-rich-presence-plex
synced 2024-11-21 17:13:04 +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).
|
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
|
## Getting Started
|
||||||
|
|
||||||
|
@ -51,9 +51,9 @@ The script must be running on the same machine as your Discord client.
|
||||||
|
|
||||||
### Buttons
|
### 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
|
#### Dynamic Button URLs
|
||||||
|
|
||||||
|
|
|
@ -195,6 +195,9 @@ class PlexAlertListener(threading.Thread):
|
||||||
largeText = "Watching a TV show"
|
largeText = "Watching a TV show"
|
||||||
thumb = item.grandparentThumb
|
thumb = item.grandparentThumb
|
||||||
if state != "playing":
|
if state != "playing":
|
||||||
|
if config["display"]["useRemainingTime"]:
|
||||||
|
stateStrings.append(f"{formatSeconds((item.duration - viewOffset) / 1000, ':')} left")
|
||||||
|
else:
|
||||||
stateStrings.append(f"{formatSeconds(viewOffset / 1000, ':')} elapsed")
|
stateStrings.append(f"{formatSeconds(viewOffset / 1000, ':')} elapsed")
|
||||||
stateText = " · ".join(stateString for stateString in stateStrings if stateString)
|
stateText = " · ".join(stateString for stateString in stateStrings if stateString)
|
||||||
elif mediaType == "track":
|
elif mediaType == "track":
|
||||||
|
|
|
@ -2,7 +2,7 @@ import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
name = "Discord Rich Presence for Plex"
|
name = "Discord Rich Presence for Plex"
|
||||||
version = "2.3.1"
|
version = "2.3.2"
|
||||||
|
|
||||||
plexClientID = "discord-rich-presence-plex"
|
plexClientID = "discord-rich-presence-plex"
|
||||||
discordClientID = "413407336082833418"
|
discordClientID = "413407336082833418"
|
||||||
|
|
Loading…
Reference in a new issue