Increase timeout for database connections

- Partially fixes #574
This commit is contained in:
croneter 2018-12-22 14:20:56 +01:00
parent c95330c0f7
commit 79e4ff4509

View file

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