mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-23 06:33:18 +02:00
fix unecessary re-wgetting of websites
This commit is contained in:
@@ -135,7 +135,7 @@ def parse_bookmarks_export(html):
|
|||||||
|
|
||||||
def fetch_wget(out_dir, link, overwrite=False):
|
def fetch_wget(out_dir, link, overwrite=False):
|
||||||
# download full site
|
# download full site
|
||||||
if not os.path.exists('{}/{}'.format(out_dir, link)) or overwrite:
|
if not os.path.exists('{}/{}'.format(out_dir, link['base_url'].split('/', 1)[0])) or overwrite:
|
||||||
print(' - Downloading Full Site')
|
print(' - Downloading Full Site')
|
||||||
CMD = [
|
CMD = [
|
||||||
*'wget --no-clobber --page-requisites --adjust-extension --convert-links --no-parent'.split(' '),
|
*'wget --no-clobber --page-requisites --adjust-extension --convert-links --no-parent'.split(' '),
|
||||||
|
Reference in New Issue
Block a user