2014-06-16, 02:07
Hi all,
I'm developing a script to keep listening if the database updated.
I found that xbmc.Monitor has a method onDatabaseUpdated
Here is my code:
And here is the xbmc logs error:
Any help please?
I'm developing a script to keep listening if the database updated.
I found that xbmc.Monitor has a method onDatabaseUpdated
Here is my code:
Quote:import xbmc
import xbmcgui
import os
class MyMonitor(xbmc.Monitor):
def __init__( self, *args, **kwargs ):
xbmc.Monitor.__init__( self )
def onDatabaseUpdated( self ):
xbmc.log( "Database Updated!" )
monitor = MyMonitor()
And here is the xbmc logs error:
Quote:02:57:07 T:6108 ERROR: EXCEPTION: access_voilation
02:57:07 T:6108 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.RuntimeError'>
Error Contents: access_voilation
Traceback (most recent call last):
File "C:\Users\Sultan\AppData\Roaming\XBMC\scripts\yazeeddbupdated.py", line 48, in <module>
monitor = MyMonitor()
RuntimeError: access_voilation
-->End of Python script error report<--
Any help please?