diff --git a/jellyfin_kodi/database/__init__.py b/jellyfin_kodi/database/__init__.py index ca80bc3c..44a976e2 100644 --- a/jellyfin_kodi/database/__init__.py +++ b/jellyfin_kodi/database/__init__.py @@ -117,8 +117,8 @@ class Database(object): for db_file in reversed(files): if (db_file.startswith(database) and not db_file.endswith('-wal') - and not db_file.endswith('-shm') - and not db_file.endswith('db-journal')): + and not db_file.endswith('-shm') + and not db_file.endswith('db-journal')): version_string = re.search('{}(.*).db'.format(database), db_file) version = int(version_string.group(1))