Update README.md

This commit is contained in:
Phin 2018-04-25 00:42:55 +05:30
parent a56c8694d0
commit e340d22fe9

View file

@ -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) * [plexapi](https://github.com/pkkid/python-plexapi)
* The script must be running on the same machine as the Discord client. * 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 ### Example
* 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 ```python
* Line 17: `usingToken` - Set this to `True` if the above is a X-Plex-Token plexConfigs = [
* Line 18: `listenForUser` - Your username, leave it blank if it's the same as `plexUsername` plexConfig(serverName = "ABC", username = "xyz", password = "0tYD4UIC4Tb8X0nt"),
* Line 19: `extraLogging` - Set this to `True` if you want the program to output more information 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 ## License