plugin.video.vrt.nu
plugin.video.vrt.nu copied to clipboard
Returning from "Go to program" fails, ends up in Videos
Describe the bug
When going back after selecting "Go to program" from the context menu, Kodi doesn't go back to the recent/offline listing but ends up in Kodi's Videos window.
This appears to be a bug in Kodi rather than an add-on issue.
We use the ActivateWindow(window,dir,return)
call which should bring you back to the originating listing when you go back.
To Reproduce
Steps to reproduce the behavior:
- Go to Recent items or Soon offline listing
- Select an episode and right-click, then choose Go to program
- In the program episode listing, go back
- Notice you end up in Kodi's Videos window
Expected behavior
Kodi should go back to the originating Recent items or Soon offline listing.
Additional context
- Operating system: LibreELEC v9.0.2
- Kodi version: v18.2
- Addon version: v2.2.0
- Using a VPN: no
- Country you are using the addon from: BE
This was reported upstream at: xbmc/xbmc#16492
We implemented a work-around using XBMC.Container.Update(dir)
.
I am going to close this, as I have no hope this will be fixed in Kodi.
Thanks to @enen92 there is a fix for this in Kodi: https://github.com/xbmc/xbmc/pull/17893
The merged PR is for Matrix, I proposed it now for Leia as well.
I am going to close this, as I have no hope this will be fixed in Kodi.
Never stop hoping! :)
This has now been merged into the Leia branch !
@mediaminister I cannot remember, is there a need to go back to using ActivateWindow()
? Or do we keep Container.Update()
.
Related issues:
- Added go to program context menu (https://github.com/add-ons/plugin.video.vrt.nu/pull/425)
- v2.3.0 issue tracker (ResumePoints, UpNext, overlay, cosmetics) (https://github.com/add-ons/plugin.video.vrt.nu/issues/616)
- Indicates that
ActivateWindow()
is more reliable after Player closes
- Indicates that
- Use ActivateWindow to update container (https://github.com/add-ons/plugin.video.vrt.nu/pull/628)
- There was still the issue with URLs ending with a number (https://github.com/xbmc/xbmc/issues/16516), which was also closed
No, there is no real need to go back to using ActivateWindow()
, the current implementation works well enough.
In the past, there were timing issues updating resume points while Kodi Player was closing. But I implemented wait_for_resumepoints
and this fixed it. So, most issues and comments regarding container updates before https://github.com/add-ons/plugin.video.vrt.nu/pull/652 are outdated.
FYI, you can find detailed information about the built-in functions at https://codedocs.xyz/AlwinEsch/kodi/page__list_of_built_in_functions.html