mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Update
This commit is contained in:
5
main.ts
5
main.ts
@@ -81,16 +81,17 @@ async function run() {
|
||||
}
|
||||
}
|
||||
function optimize() {
|
||||
const db = new EhDb(settings.base);
|
||||
const db = new EhDb(settings.db_path || settings.base);
|
||||
db.optimize();
|
||||
db.close();
|
||||
}
|
||||
async function update_tag_translation() {
|
||||
const db = new EhDb(settings.base);
|
||||
const db = new EhDb(settings.db_path || settings.base);
|
||||
const f = await load_eht_file(
|
||||
args._.length > 1 ? args._[1].toString() : undefined,
|
||||
);
|
||||
update_database_tag(db, f);
|
||||
db.close();
|
||||
}
|
||||
async function main() {
|
||||
await sure_dir(settings.base);
|
||||
|
||||
Reference in New Issue
Block a user