mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-08-10 23:56:31 +00:00
fix db stuff (#164)
* Reload objects upon initial setup * Fix database discovery ignore db-journal
This commit is contained in:
parent
2a4e42fba0
commit
2bbd5bf3a9
3 changed files with 29 additions and 27 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue