Websocket URL
This commit is contained in:
parent
8214a858bc
commit
a64e0cea2d
2 changed files with 3 additions and 2 deletions
|
@ -533,7 +533,7 @@ class LibrarySync(threading.Thread):
|
||||||
del updatelist[:]
|
del updatelist[:]
|
||||||
else:
|
else:
|
||||||
# Initial or repair sync
|
# Initial or repair sync
|
||||||
embymovies = self.plx.GetPlexMovies(viewId)
|
embymovies = self.plx.GetPlexSectionResults(viewId)
|
||||||
total = len(embymovies)
|
total = len(embymovies)
|
||||||
|
|
||||||
if pdialog:
|
if pdialog:
|
||||||
|
|
|
@ -287,8 +287,9 @@ class WebSocket_Client(threading.Thread):
|
||||||
server = server.replace('https', "wss")
|
server = server.replace('https', "wss")
|
||||||
else:
|
else:
|
||||||
server = server.replace('http', "ws")
|
server = server.replace('http', "ws")
|
||||||
|
#EDIT: realized the ws url is at: ws://server.local:32400/:/websockets/notifications
|
||||||
|
|
||||||
websocket_url = "%s?api_key=%s&deviceId=%s" % (server, token, deviceId)
|
websocket_url = "%s/:/websockets/notifications/?X-Plex-Token=%s" % (server, token)
|
||||||
self.logMsg("websocket url: %s" % websocket_url, 1)
|
self.logMsg("websocket url: %s" % websocket_url, 1)
|
||||||
|
|
||||||
self.client = websocket.WebSocketApp(websocket_url,
|
self.client = websocket.WebSocketApp(websocket_url,
|
||||||
|
|
Loading…
Reference in a new issue