2020-09-22, 18:01
While developing a new feature for Amazon's PrimeVideo I stumbled in a problem I'm not quite sure how to solve. I currently have a folder-based navigation which works fine, but I might need to "start from the beginning again" on certain leaves:
I can't use Updatelisting=True because it's several items down, Container.Refresh doesn't work either for the same reason, Container.Update shouldn't work as well, calling the addon from scratch doesn't work. Is there a way to wipe the history clean, so as to not have a "go back" ListItem at the beginning, and so that if the addon goes back it returns to kodi's addon menu (or wherever he was before)?
If not possible is there a way to tell Kodi to just go back one or more directories in the listings?
I could do the second best thing which is just to refresh the Profiles listing and then the user has to go back by himself, but I thought I'd ask in case someone knows of a way.
Code:
Root directory structure
├ Profiles
│ └ Change user and refresh the root
├ Watchlist
└ […]
I can't use Updatelisting=True because it's several items down, Container.Refresh doesn't work either for the same reason, Container.Update shouldn't work as well, calling the addon from scratch doesn't work. Is there a way to wipe the history clean, so as to not have a "go back" ListItem at the beginning, and so that if the addon goes back it returns to kodi's addon menu (or wherever he was before)?
If not possible is there a way to tell Kodi to just go back one or more directories in the listings?
I could do the second best thing which is just to refresh the Profiles listing and then the user has to go back by himself, but I thought I'd ask in case someone knows of a way.