Thanks for the update
I have a feature suggestion.
The way I see it work.
Right click on a link (within Last Played) and I see two options.
-Show last window before link was played
-Show 2nd to last window before link was played
An exmaple in use
say im in an addon that has a playlist or episodes.
Say the episodes are 1-10.
when I click on episode 4.
It plays episode 4.
Now Last Played records meta data and the url of last played item, but what if it also recorded the kodi menu (or window) when the file played and link with the listing in Last Played. Thats where
*-Show last window before link was played*
comes from.
say instead of directly playing the link episode 4, I get a list of sources to stream episode 4.
now since Last Played records the 2nd to last window. Then I have the option to see the list with all the episodes.
why this can be useful.
2 reasons (which you already know)
if the link was expired or if you wanted to have access to the playlist or other episodes really quickly.
I believe this should be possible because the addon super favourites does this.
when you go into super favourites and go to a link, it will take you to another addon, when you press back it takes you back into super favourites (or the last window)
so Spoysers managed to find a list that kodi keeps of window hierarchy.maybe have a look at his code to see what he does.
(also the script that Spyoser made for me here
https://forums.tvaddons.ag/lambda-s-xbmc...nesis.html
also has the behaviour I am referring to)
what do you think rodrigl? if you can achieve this then we wont need to worry about a link expiring, and this will benefit your future feature about keep history forever.