1
0
Fork 0
mirror of synced 2024-06-26 18:10:24 +12:00

Merge pull request #568 from cdvv7788/#544-update-index-only

#544 update: --index-only flag
This commit is contained in:
Nick Sweeting 2020-12-05 17:40:22 -05:00 committed by GitHub
commit a05671f2be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,6 +45,7 @@ from .index import (
get_corrupted_folders,
get_unrecognized_folders,
fix_invalid_folder_locations,
write_link_details,
)
from .index.json import (
parse_json_main_index,
@ -703,6 +704,8 @@ def update(resume: Optional[float]=None,
all_links = [link for link in matching_folders.values() if link]
if index_only:
for link in all_links:
write_link_details(link, out_dir=out_dir, skip_sql_index=True)
return all_links
# Step 2: Run the archive methods for each link