smitchell6879 / plugin.video.specialfeatures

Inspired by the new bluray features of Kodi 18; This addon will present all of the bonus videos, discs, versions you have of movies in your library.
GNU General Public License v3.0
2 stars 0 forks source link

Fix redirect when exiting special features window #6

Open evertiro opened 6 years ago

evertiro commented 6 years ago

Copied from forum post: https://forum.kodi.tv/showthread.php?tid=327042&pid=2711062#pid2711062

When I launch it from video info dialog, I need to close the dialog first (which is fine). However, when I press back from special features, I end up on the home screen instead of in the library.

smitchell6879 commented 6 years ago

I feel this goes back to https://forum.kodi.tv/showthread.php?tid=306301

The code has ActivateWindow(videos, pluginpath, return) return being the key element it should return.. I am going to wait a little while for a response. If none is given I will try to hack it.

evertiro commented 6 years ago

I'd been tossing around trying to write a custom handler that would allow redirecting back to the parent video. You're likely right however...

smitchell6879 commented 6 years ago

Fixed. I was activating a new window for the plugin when in the video window which was replacing the path history. So I changed to a if statement to update window if in videos. If you will test and as it should work then if your good I will close this issue.

evertiro commented 6 years ago

Testing the latest

evertiro commented 6 years ago

Works for me! I do wish it would drop you exactly where you initiated it from, but that'd be a bit more of a headache.

smitchell6879 commented 6 years ago

You mean when you go back you wish the information would show back up?

evertiro commented 6 years ago

I wish it would return you to exactly where you hit 'special features' from. So if it was an info window, return there. If it's context menu from home screen widget, return there. Wherever.

smitchell6879 commented 6 years ago

This may could be done with some serious hacking.... The info dialog has to be closed before I can open the addon window... so with that I could capture that your coming from the info window but the skin itself would need to add if previous window is () or I could set a property when opening the addon that would have to be cleared and when you return to the skin window have it clear the property and active the info dialog again... hoping that the original movie still has focus in the list and open the right info dialog for the right movie.

And unfortunately the home menu would also need a similar but more complex hack because it has so many different lists.

evertiro commented 6 years ago

That's about the same workflow I'd come up with.