From ce257949b4468c77412c026b5987c3f37bad6443 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Mon, 4 Feb 2019 22:08:08 -0800 Subject: [PATCH] fix double parsing by accident --- archivebox/archive.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/archivebox/archive.py b/archivebox/archive.py index eeee6971..b3483284 100755 --- a/archivebox/archive.py +++ b/archivebox/archive.py @@ -186,8 +186,7 @@ if __name__ == '__main__': source = save_source(stdin_raw_text) # Step 1: Parse the links and dedupe them with existing archive - links = merge_links(archive_path=out_dir, import_path=source, only_new=False) - new_links = merge_links(archive_path=out_dir, import_path=source, only_new=True) + links = merge_links(archive_path=out_dir, import_path=source, only_new=ONLY_NEW) # Step 2: Write new index write_links_index(out_dir=out_dir, links=links) @@ -196,7 +195,4 @@ if __name__ == '__main__': # cleanup_archive(out_dir, links) # Step 4: Run the archive methods for each link - if ONLY_NEW: - update_archive(out_dir, new_links, source=source, resume=resume, append=True) - else: - update_archive(out_dir, links, source=source, resume=resume, append=True) + update_archive(out_dir, links, source=source, resume=resume, append=True)