mirror of
https://github.com/phin05/discord-rich-presence-plex
synced 2024-11-22 09:33:07 +00:00
1.9 KiB
1.9 KiB
Discord Rich Presence for Plex
A Python script that displays your Plex status on Discord using Rich Presence.
Requirements
- Python 3.6.7
- plexapi
- Use websocket-client version 0.48.0 (
pip install websocket-client==0.48.0
) as an issue with newer versions of websocket-client breaks the plexapi module's alert listener. - The script must be running on the same machine as the Discord client.
Configuration
Add your configuration(s) into the plexConfigs
list on line 26.
Example
plexConfigs = [
plexConfig(serverName = "ABC", username = "xyz", password = "0tYD4UIC4Tb8X0nt"),
plexConfig(serverName = "DEF", username = "pqr@pqr.pqr", token = "70iU3GZrI54S76Tn", listenForUser = "xyz")
]
Parameters
serverName
- Name of the Plex Media Server to connect tousername
- Username of the account the above server is signed in aspassword
- Password associated with the above accounttoken
- Optional, ignorespassword
if set. A X-Plex-Token associated with the above account. In some cases,myPlexAccessToken
from Plex Web App's HTML5 Local Storage must be used. To retrieve this token in Google Chrome, open Plex Web App, press F12, go to "Application", expand "Local Storage" and click on the relevant entry.listenForUser
- Your username, defaults tousername
if not set
Other Variables
- Line 16:
extraLogging
- The program outputs more information if this is set toTrue
License
This project is licensed under the MIT License. See the LICENSE file for details.