Kodi Community Forum

Full Version: CallerID Not Working in video playback
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It looks like the old callerID scripts haven't kept up with changes to XBMC. Had to modify the CallerID script to hardcode paths and not write logs as it couldn't figure out its working directory without throwing an error.

Once that was done, it works fine when in the main menu or playing back an mp3 (with visualizations) but nothing shows when either playing a DVD or video file or looking at pictures. I know this worked in the past so anyone have any ideas what might have broken and what I can do to fix it?

Here's the (modified) snippet that does the drawing:
PHP Code:
class caller(xbmcgui.WindowDialog):
    
def __init__(self):

        
self.getWidth()
        
self.getHeight()
        
self.bg xbmcgui.ControlImage(282138222103"Q:\\scripts\\CallerID\\CallerID\\dialog.png")
        
self.addControl(self.bg)
        
self.callerid xbmcgui.ControlLabel(2759518164data'font13''0xff000000')
        
self.addControl(self.callerid)
        if 
not DOIMAGE:
            
self.title xbmcgui.ControlLabel(27713310010'Message''font13''0xffffffff')
            
self.addControl(self.title)
        else:
            
self.frame xbmcgui.ControlImage(35913877103"Q:\\scripts\\CallerID\\CallerID\\frame.png")
            
self.addControl(self.frame)
            
self.title xbmcgui.ControlLabel(35413310010'YAC Message''font13''0xffffffff')
            
self.addControl(self.title)
            
filename replace(number'(''')
            
filename replace(filename')''')
            
filename replace(filename' ''')
            
filename replace(filename'-''')
            
filename "Q:\\scripts\\CallerID\\CallerID\\" filename '.jpg'
            
if not fileExists(filename): filename "Q:\\scripts\\CallerID\\CallerID\\default.jpg"
            
self.tn xbmcgui.ControlImage(3591127777filename)
            
self.addControl(self.tn)

        
self.= -1
        self
.shown 1

        subThread 
threading.Thread(target=self.SubthreadProcargs=())
        
subThread.start()

    
def SubthreadProc(self):
        
sleep(DELAY)
        if 
self.shown:
            
self.close()

    
def onAction(selfaction):
        if 
self.== action:
            
self.shown 0
            self
.close()
        
self.action