fix: redownloading

`wget --timestamping` (alternatively `-N`) is now used to skip already
existing files
This commit is contained in:
eneller
2025-02-25 13:24:51 +01:00
parent 8e0d92d796
commit 4ffe110bc4
2 changed files with 2 additions and 3 deletions

View File

@@ -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}'''

View File

@@ -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__