Increase database timeouts

- Partially fixes #580
This commit is contained in:
croneter 2018-12-30 22:10:36 +01:00
parent e4cb07df68
commit 74e8d1cc0f

View file

@ -402,7 +402,7 @@ def kodi_sql(media_type=None):
db_path = v.DB_TEXTURE_PATH db_path = v.DB_TEXTURE_PATH
else: else:
db_path = v.DB_VIDEO_PATH db_path = v.DB_VIDEO_PATH
conn = connect(db_path, timeout=30.0) conn = connect(db_path, timeout=60.0)
conn.execute('PRAGMA journal_mode=WAL;') conn.execute('PRAGMA journal_mode=WAL;')
conn.execute('PRAGMA cache_size = -8000;') conn.execute('PRAGMA cache_size = -8000;')
conn.execute('PRAGMA synchronous=NORMAL;') conn.execute('PRAGMA synchronous=NORMAL;')