fix: redownloading
`wget --timestamping` (alternatively `-N`) is now used to skip already existing files
This commit is contained in:
@@ -37,12 +37,11 @@ class GBConvert():
|
||||
self.toc = soup.find('ul').find_all('a')
|
||||
|
||||
def save_page(self, url):
|
||||
# TODO fix redownloading of shared content
|
||||
# https://superuser.com/questions/970323/using-wget-to-copy-website-with-proper-layout-for-offline-browsing
|
||||
command = f'''wget \
|
||||
--timestamping \
|
||||
--page-requisites \
|
||||
--convert-links \
|
||||
--execute \
|
||||
--tries=5 \
|
||||
--quiet \
|
||||
{url}'''
|
||||
|
||||
@@ -4,7 +4,7 @@ from django.http import HttpResponse
|
||||
from django.shortcuts import redirect, render
|
||||
import requests
|
||||
|
||||
import utils
|
||||
from convert import GBConvert, allbooks_url
|
||||
import json
|
||||
DEBUG = True
|
||||
ROOT_URLCONF = __name__
|
||||
|
||||
Reference in New Issue
Block a user