We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d56bb53 commit 40cdd03Copy full SHA for 40cdd03
1 file changed
comiclib/scanner/30-importEHdb.py
@@ -66,6 +66,9 @@ def __init__(self) -> None:
66
db_path = urlsplit(settings.importEHdb_database_URI).path
67
if Path(db_path).exists():
68
self.con = sqlite3.connect(settings.importEHdb_database_URI, uri=True, check_same_thread=False)
69
+ # Check if the database is out of date
70
+ if self.con.execute("SELECT posted FROM gallery INDEXED BY gallery_posted ORDER BY posted DESC LIMIT 1").fetchone()[0] < 1705903491:
71
+ logger.warning("There is a new version of api_dump.sqlite, you can download it from https://sukebei.nyaa.si/user/gipaf23445")
72
# Build cache during the first run
73
if settings.importEHdb_matchtitle:
74
req_title2gid_index = self.con.execute(f"SELECT name FROM sqlite_master WHERE type='index' AND name=?", (title2gid_index,)).fetchone() is None
0 commit comments