From 9648c21b32adc2aa564ee2c6f4d9d011ee239901 Mon Sep 17 00:00:00 2001 From: ricterz Date: Tue, 11 Mar 2025 22:02:37 +0800 Subject: [PATCH] tiny fix of #397 --- nhentai/command.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nhentai/command.py b/nhentai/command.py index 8dc2cf9..ef9993b 100644 --- a/nhentai/command.py +++ b/nhentai/command.py @@ -80,9 +80,10 @@ def main(): if options.is_save_download_history: with DB() as db: - data = map(int, db.get_all()) + data = set(map(int, db.get_all())) doujinshi_ids = list(set(map(int, doujinshi_ids)) - set(data)) + logger.info(f'New doujinshis account: {len(doujinshi_ids)}') if not options.is_show: downloader = Downloader(path=options.output_dir, threads=options.threads,