Handling video lists with multiple pages.

So in my addon there are often multiple pages of videos. I can create directory_objects to navigate through these pages fine. But my trouble is i would like to have it so the user can hit BACKSPACE and go back a level like they would expect to happen. I see a setting that looks like it should do exactly what i want. To my understanding this should make it so the page isn't added to the history.

oc = ObjectContainer(no_history=True)

However, this option has no affect on my addon. I have also tried no_cache=True and replace_parent=True. None of these make any difference from what i can see. Any suggestions?

Just to clarify, you're current code works like this:

Menu -> List of videos -> next page of videos -> next page of videos

and when backing up

Menu <- List of videos <- next page of videos <- next page of videos

when what you want to have is 

Menu - List of videos - next page of videos - next page of videos
 ^                                                     |
 |_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _|

Is that right?

Which client(s) have you tested with?

Yes, you have described exactly what I want to do, and right now I'm using the linux client for development so that is all I have tested on.

Setting “no_history=True” for each of the ObjectContainers should give the desired result. I would recommend testing on a different client to see if that makes a difference, perhaps Plex/Web. It’s possible that the Linux client doesn’t respect that setting for some reason.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.