1
0
Fork 0
mirror of synced 2024-05-15 09:52:30 +12:00

fix unecessary re-wgetting of websites

This commit is contained in:
Nick Sweeting 2017-06-15 17:31:37 -05:00
parent c96c2eb2da
commit fa79768f1e

View file

@ -135,7 +135,7 @@ def parse_bookmarks_export(html):
def fetch_wget(out_dir, link, overwrite=False):
# 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')
CMD = [
*'wget --no-clobber --page-requisites --adjust-extension --convert-links --no-parent'.split(' '),