mirror of
https://github.com/phin05/discord-rich-presence-plex
synced 2024-11-21 17:13:04 +00:00
Update README.md
This commit is contained in:
parent
a56c8694d0
commit
e340d22fe9
1 changed files with 22 additions and 8 deletions
30
README.md
30
README.md
|
@ -8,16 +8,30 @@ A Python script that displays your [Plex](https://www.plex.tv) status on [Discor
|
|||
* [plexapi](https://github.com/pkkid/python-plexapi)
|
||||
* The script must be running on the same machine as the Discord client.
|
||||
|
||||
## Variables
|
||||
## Configuration
|
||||
|
||||
You will have to change the following variables in `discordRichPresencePlex.py`:
|
||||
Add your configuration(s) into the `plexConfigs` list on line 24.
|
||||
|
||||
* Line 14: `plexServerName` - Name of the Plex Media Server to connect to
|
||||
* Line 15: `plexUsername` - Username of the account the server is signed in as
|
||||
* Line 16: `plexPasswordOrToken` - Password or a [X-Plex-Token](https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token) associated with the above account
|
||||
* Line 17: `usingToken` - Set this to `True` if the above is a X-Plex-Token
|
||||
* Line 18: `listenForUser` - Your username, leave it blank if it's the same as `plexUsername`
|
||||
* Line 19: `extraLogging` - Set this to `True` if you want the program to output more information
|
||||
### Example
|
||||
|
||||
```python
|
||||
plexConfigs = [
|
||||
plexConfig(serverName = "ABC", username = "xyz", password = "0tYD4UIC4Tb8X0nt"),
|
||||
plexConfig(serverName = "DEF", username = "pqr@pqr.pqr", token = "70iU3GZrI54S76Tn", listenForUser = "xyz")
|
||||
]
|
||||
```
|
||||
|
||||
### Valid Parameters
|
||||
|
||||
* `serverName` - Name of the Plex Media Server to connect to
|
||||
* `username` - Username of the account the server is signed in as
|
||||
* `password` - Password associated with the above account
|
||||
* `token` - A [X-Plex-Token](https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token) associated with the above account, ignores `password` if set
|
||||
* `listenForUser` - Your username, defaults to `username` if not set
|
||||
|
||||
### Other Variables
|
||||
|
||||
* Line 15: `extraLogging` - Set this to `True` if you want the program to output more information
|
||||
|
||||
## License
|
||||
|
||||
|
|
Loading…
Reference in a new issue