Fix repeating renaming notifiers on startup
This commit is contained in:
@@ -1597,6 +1597,9 @@ def dbcheck():
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Rename notifiers in the database
|
# Rename notifiers in the database
|
||||||
|
result = c_db.execute('SELECT agent_label FROM notifiers '
|
||||||
|
'WHERE agent_label = "XBMC" OR agent_label = "OSX Notify"').fetchone()
|
||||||
|
if result:
|
||||||
logger.debug(u"Altering database. Renaming notifiers.")
|
logger.debug(u"Altering database. Renaming notifiers.")
|
||||||
c_db.execute(
|
c_db.execute(
|
||||||
'UPDATE notifiers SET agent_label = "Kodi" WHERE agent_label = "XBMC"'
|
'UPDATE notifiers SET agent_label = "Kodi" WHERE agent_label = "XBMC"'
|
||||||
|
Reference in New Issue
Block a user