Check all Kodi database versions before starting PKC

This commit is contained in:
croneter 2018-06-17 13:37:15 +02:00
parent 7297267613
commit 1136178381

View file

@ -1491,7 +1491,10 @@ class LibrarySync(Thread):
# Link to Websocket queue # Link to Websocket queue
queue = state.WEBSOCKET_QUEUE queue = state.WEBSOCKET_QUEUE
if not exists(try_encode(v.DB_VIDEO_PATH)): if (not exists(try_encode(v.DB_VIDEO_PATH)) or
not exists(try_encode(v.DB_TEXTURE_PATH)) or
(state.ENABLE_MUSIC and
not exists(try_encode(v.DB_MUSIC_PATH)))):
# Database does not exists # Database does not exists
LOG.error("The current Kodi version is incompatible " LOG.error("The current Kodi version is incompatible "
"to know which Kodi versions are supported.") "to know which Kodi versions are supported.")