mirror of
https://github.com/phin05/discord-rich-presence-plex
synced 2024-11-22 17:43:03 +00:00
Update discordRichPresencePlex.py
This commit is contained in:
parent
b0ee7de095
commit
4c03439a93
1 changed files with 3 additions and 2 deletions
|
@ -15,12 +15,13 @@ class plexConfig:
|
||||||
|
|
||||||
extraLogging = True
|
extraLogging = True
|
||||||
|
|
||||||
def __init__(self, serverName = "", username = "", password = "", token = "", listenForUser = ""):
|
def __init__(self, serverName = "", username = "", password = "", token = "", listenForUser = "", clientID = "413407336082833418"):
|
||||||
self.serverName = serverName
|
self.serverName = serverName
|
||||||
self.username = username
|
self.username = username
|
||||||
self.password = password
|
self.password = password
|
||||||
self.token = token
|
self.token = token
|
||||||
self.listenForUser = (username if listenForUser == "" else listenForUser).lower()
|
self.listenForUser = (username if listenForUser == "" else listenForUser).lower()
|
||||||
|
self.clientID = clientID
|
||||||
|
|
||||||
plexConfigs = [
|
plexConfigs = [
|
||||||
# plexConfig(serverName = "", username = "", password = "", token = "", listenForUser = "")
|
# plexConfig(serverName = "", username = "", password = "", token = "", listenForUser = "")
|
||||||
|
@ -124,7 +125,7 @@ class discordRichPresencePlex(discordRichPresence):
|
||||||
def __init__(self, plexConfig):
|
def __init__(self, plexConfig):
|
||||||
self.plexConfig = plexConfig
|
self.plexConfig = plexConfig
|
||||||
self.instanceID = hashlib.md5(str(id(self)).encode("UTF-8")).hexdigest()[:5]
|
self.instanceID = hashlib.md5(str(id(self)).encode("UTF-8")).hexdigest()[:5]
|
||||||
super().__init__("413407336082833418", self)
|
super().__init__(plexConfig.clientID, self)
|
||||||
self.plexAccount = None
|
self.plexAccount = None
|
||||||
self.plexServer = None
|
self.plexServer = None
|
||||||
self.plexAlertListener = None
|
self.plexAlertListener = None
|
||||||
|
|
Loading…
Reference in a new issue