No description
Find a file
2018-10-22 19:09:41 +05:30
discordRichPresencePlex.py Update discordRichPresencePlex.py 2018-09-13 23:17:39 +05:30
LICENSE Update LICENSE 2018-02-15 01:52:34 +05:30
README.md Update README.md 2018-10-22 19:09:41 +05:30

Discord Rich Presence for Plex

A Python script that displays your Plex status on Discord using Rich Presence.

Requirements

  • Python 3.6.4+
  • plexapi
  • websocket-client
    • Use 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 to
  • username - Username of the account the above server is signed in as
  • password - Password associated with the above account
  • token - A X-Plex-Token associated with the above account, ignores password if set
  • listenForUser - Your username, defaults to username if not set

Other Variables

  • Line 16: extraLogging - The program outputs more information if this is set to True

License

This project is licensed under the MIT License. See the LICENSE file for details.