Kodi Community Forum
How to show DialogBusy window after leaving a list of movie from an actor ? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Context Menus (https://forum.kodi.tv/forumdisplay.php?fid=309)
+---- Thread: How to show DialogBusy window after leaving a list of movie from an actor ? (/showthread.php?tid=378712)



How to show DialogBusy window after leaving a list of movie from an actor ? - Patobeurre - 2024-09-04

Hi everyone,

I want to add the busy windows after leaving the movies list from an actor.

Does anyone know how to do so ?

I found that when you select an actor it opens this : CGUIMediaWindow::GetDirectory (videodb://movies/actors/XXXXX/), where XXXXX is the ID of the actor.

I tried to make an autoexec addon, but i don't know if it's really initialized...

Thanks for your help !


RE: How to show DialogBusy window after leaving a list of movie from an actor ? - scott967 - 2024-09-04

xbmc.executebuiltin('ActivateWindow(busydialognocancel)')

scott s.
.


RE: How to show DialogBusy window after leaving a list of movie from an actor ? - Patobeurre - 2024-09-04

Thank you for replying

Where do I include that ?


RE: How to show DialogBusy window after leaving a list of movie from an actor ? - scott967 - 2024-09-06

I assume you are writing a script to run from a context menu.  Need more detail what you are trying to accomplish.

scott s.
.


RE: How to show DialogBusy window after leaving a list of movie from an actor ? - Patobeurre - 2024-09-09

Hello
Thanks for your reply

I m trying to show the dialogbusy when i m on a list of movies from an actor.

Actually it's almost working...
Here is my addon code :
Code:
import xbmc
import xbmcgui
import re #Import de Regex

class ActorDialogService(xbmc.Monitor):
def show_busy(self):
xbmc.executebuiltin('Action(Back)')
xbmc.executebuiltin('ActivateWindow(busydialognocancel)')
xbmc.sleep(5000)
xbmc.executebuiltin('Dialog.Close(busydialognocancel)')

def run(self):
actorDirectory = str(xbmc.getInfoLabel('Container.FolderPath'))
if re.search("actors/\d",actorDirectory) != None: #To show dialogbusy if a list of movies from an actor is displayed
self.show_busy()

else :
xbmc.executebuiltin('Action(Back)')

ActorDialogService().run()

And here is my keymap :
Code:
<keymap><global><keyboard><key id="61448">runaddon(service.showactordialog)</key></keyboard></global></keymap>

The actual problem is that the dialogbusy seems to appear for the 5 seconds, but, not on top of the movies list from actor window.

Is there any way to fix that ?

Also, is it possible to start a script instead of an addon ?

(Kodi 20)