2022-12-09, 09:22
I am writing a simple addon for kodi to search and play videos on certain websites. Since I'm new I'm still getting around with xbmc apis.
I use xbmc.Player to directly play videos from scrapped urls, and I use a dead loop inside the script to wait for the playback to finish (I use "player.isPlaying()"). The issue is that when the playback finishes (not stopped by the user), my first call to xbmcgui.Dialog after that always gets automatically closed. The debug log shows that the dialog was opened and immediately closed by kodi because it seems to be reinitializing its homepage. Wonder if there's anything I can do about that.
I use xbmc.Player to directly play videos from scrapped urls, and I use a dead loop inside the script to wait for the playback to finish (I use "player.isPlaying()"). The issue is that when the playback finishes (not stopped by the user), my first call to xbmcgui.Dialog after that always gets automatically closed. The debug log shows that the dialog was opened and immediately closed by kodi because it seems to be reinitializing its homepage. Wonder if there's anything I can do about that.