How to show DialogBusy window after leaving a list of movie from an actor ?
#1
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 !
Reply
#2
xbmc.executebuiltin('ActivateWindow(busydialognocancel)')

scott s.
.
Reply
#3
Thank you for replying

Where do I include that ?
Reply
#4
I assume you are writing a script to run from a context menu.  Need more detail what you are trying to accomplish.

scott s.
.
Reply
#5
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)
Reply

Logout Mark Read Team Forum Stats Members Help
How to show DialogBusy window after leaving a list of movie from an actor ?0