Fix repeating renaming notifiers on startup

This commit is contained in:
JonnyWong16 2018-03-24 23:32:53 -07:00
parent 8fac54aa71
commit 042b48c1fd

View file

@ -1597,6 +1597,9 @@ def dbcheck():
)
# 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.")
c_db.execute(
'UPDATE notifiers SET agent_label = "Kodi" WHERE agent_label = "XBMC"'