Posts: 6,684
Joined: Mar 2009
Reputation:
147
phil65
Retired Team-Kodi Member
Posts: 6,684
2012-05-31, 21:10
(This post was last modified: 2012-05-31, 21:39 by phil65.)
if i think about it again, than it´s probably not that easy... my idea doesn´t take into account that another item can have focus when ending the video. Same applies to some other solutions here.
stringcomparing videoplayer and listitem episode title would be a work-around. (so set a string/property with the videoplayer episode title on videofullscreen.xml onunload and compare that with the listitem episodetitle. if true, then delete)
i think this can probably be done much better and nicer by a script.
Posts: 3,919
Joined: Jul 2010
Reputation:
154
BigNoid
Team-Kodi Member
Posts: 3,919
I would never use Container.Content with an onload condition as its only checked on window load
Posts: 2,529
Joined: Apr 2009
Reputation:
8
and my test with playcount of course does not work as it is set after onload. I am going to stop now as I need to study a bit before coming up with more bad ideas.
Posts: 2,529
Joined: Apr 2009
Reputation:
8
Is it possible the button id 9999 was used because it will make it load last when the values have loaded and not by accident?
While onload is ofc loaded first before I guess the list?
It looks like I can set a string on unload on the previous screen. How to retrieve it I do not know.