2019-02-22, 11:26
I'm wondering if it is possible to get the id of the 'previous' window that is under the current player?
Specifically, I want to know if the last window is the window for the currently playing tv show & episode. I have the tvshowid and episode, and if the last window is NOT the window for that episode, I have the code to go there
(i.e.)
But - I don't know how to get the previous window, or how to get the id of the window that json would take the user to, for comparison.
(Basically, I am trying to solve the fact that if I _always_ do to the window for the thetvshowid/episode, and the last window was actually already that window, the user then has to hit back twice to exit that window, which ... sucks.
Any help much appreciated!!
Specifically, I want to know if the last window is the window for the currently playing tv show & episode. I have the tvshowid and episode, and if the last window is NOT the window for that episode, I have the code to go there
(i.e.
Code:
command='{"jsonrpc": "2.0", "method": "GUI.ActivateWindow", "params": { "window": "videos", "parameters": [ "videodb://2/2/%d/%d" ] }, "id": 1}' % (playingTvshowid, playingSeason)
But - I don't know how to get the previous window, or how to get the id of the window that json would take the user to, for comparison.
(Basically, I am trying to solve the fact that if I _always_ do to the window for the thetvshowid/episode, and the last window was actually already that window, the user then has to hit back twice to exit that window, which ... sucks.
Any help much appreciated!!