Plex Companion: fix skipping forward and backward

- Fixes #45
This commit is contained in:
tomkat83 2016-06-26 17:06:00 +02:00
parent 40529938ca
commit fd1a44f15f

View file

@ -190,12 +190,12 @@ class MyHandler(BaseHTTPRequestHandler):
elif request_path == "player/playback/skipNext": elif request_path == "player/playback/skipNext":
self.response(getOKMsg(), self.js.getPlexHeaders()) self.response(getOKMsg(), self.js.getPlexHeaders())
for playerid in self.js.getPlayerIds(): for playerid in self.js.getPlayerIds():
self.js.jsonrpc("Player.Seek", {"playerid":playerid, "value":"bigforward"}) self.js.jsonrpc("Player.GoTo", {"playerid":playerid, "to":"next"})
self.subMgr.notify() self.subMgr.notify()
elif request_path == "player/playback/skipPrevious": elif request_path == "player/playback/skipPrevious":
self.response(getOKMsg(), self.js.getPlexHeaders()) self.response(getOKMsg(), self.js.getPlexHeaders())
for playerid in self.js.getPlayerIds(): for playerid in self.js.getPlayerIds():
self.js.jsonrpc("Player.Seek", {"playerid":playerid, "value":"bigbackward"}) self.js.jsonrpc("Player.GoTo", {"playerid":playerid, "to":"previous"})
self.subMgr.notify() self.subMgr.notify()
elif request_path == "player/navigation/moveUp": elif request_path == "player/navigation/moveUp":
self.response(getOKMsg(), self.js.getPlexHeaders()) self.response(getOKMsg(), self.js.getPlexHeaders())