File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ def __init__(self) -> None:
4242 if Path (settings .importEHdb_API_DUMP_PATH ).exists ():
4343 logger .info ('Loading ehentai metadata database, please wait...' )
4444 # do it in readonly mode, to maintain a readonly container image
45- self .con = sqlite3 .connect ("file:" + settings .importEHdb_API_DUMP_PATH + "?mode=ro" , uri = True , check_same_thread = False )
45+ self .con = sqlite3 .connect ("file:" + settings .importEHdb_API_DUMP_PATH + "?mode=ro&immutable=1 " , uri = True , check_same_thread = False )
4646 if settings .importEHdb_matchtitle :
4747 self .db_title = {blur_title (row [0 ]): row [1 ] for row in self .con .execute ("SELECT title, gid FROM gallery" ) if not row [0 ] is None }
4848 self .db_title_jpn = {blur_title (row [0 ]): row [1 ] for row in self .con .execute ("SELECT title_jpn, gid FROM gallery" ) if not row [0 ] is None }
You can’t perform that action at this time.
0 commit comments