X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=nhentai%2Fcommand.py;h=bc987fb8852390a6d705e7205be26c2842d6a9f3;hb=00aad774ae0099a7ef2ed2ed481d333cf0f6f418;hp=8b0540682f84d148ad0b4132e75304746478f7d8;hpb=1cdebaab6181a52b38795e02ff78719affdca4ef;p=nhentai.git diff --git a/nhentai/command.py b/nhentai/command.py index 8b05406..bc987fb 100644 --- a/nhentai/command.py +++ b/nhentai/command.py @@ -65,11 +65,11 @@ def main(): if options.is_download and doujinshis: doujinshi_ids = [i['id'] for i in doujinshis] - if options.is_save_download_history: - with DB() as db: - data = map(int, db.get_all()) + if options.is_save_download_history: + with DB() as db: + data = map(int, db.get_all()) - doujinshi_ids = list(set(doujinshi_ids) - set(data)) + doujinshi_ids = list(set(map(int, doujinshi_ids)) - set(data)) if doujinshi_ids: for i, id_ in enumerate(doujinshi_ids):