fix db stuff (#164)

* Reload objects upon initial setup

* Fix database discovery

ignore db-journal
This commit is contained in:
angelblue05 2019-01-20 01:21:37 -06:00 committed by GitHub
commit 2bbd5bf3a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 27 deletions

View file

@ -99,7 +99,8 @@ class Database(object):
modified = {'file': None, 'time': 0}
for file in reversed(files):
if file.startswith(database) and not file.endswith('-wal') and not file.endswith('-shm'):
if (file.startswith(database) and not file.endswith('-wal') and
not file.endswith('-shm') and not file.endswith('db-journal')):
st = xbmcvfs.Stat(databases + file.decode('utf-8'))
modified_int = st.st_mtime()