mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-10 14:44:18 +00:00
Merge pull request #459 from cdvv7788/hotfix/#458
This commit is contained in:
commit
ccc235973b
1 changed files with 6 additions and 0 deletions
|
@ -16,6 +16,7 @@ from ..util import (
|
||||||
)
|
)
|
||||||
from ..config import (
|
from ..config import (
|
||||||
TIMEOUT,
|
TIMEOUT,
|
||||||
|
CURL_BINARY,
|
||||||
SAVE_READABILITY,
|
SAVE_READABILITY,
|
||||||
DEPENDENCIES,
|
DEPENDENCIES,
|
||||||
READABILITY_VERSION,
|
READABILITY_VERSION,
|
||||||
|
@ -65,6 +66,11 @@ def save_readability(link: Link, out_dir: Optional[str]=None, timeout: int=TIMEO
|
||||||
# Readability Docs: https://github.com/mozilla/readability
|
# Readability Docs: https://github.com/mozilla/readability
|
||||||
|
|
||||||
status = 'succeeded'
|
status = 'succeeded'
|
||||||
|
# fake command to show the user so they have something to try debugging if get_html fails
|
||||||
|
cmd = [
|
||||||
|
CURL_BINARY,
|
||||||
|
link.url
|
||||||
|
]
|
||||||
timer = TimedProgress(timeout, prefix=' ')
|
timer = TimedProgress(timeout, prefix=' ')
|
||||||
try:
|
try:
|
||||||
document = get_html(link, out_dir)
|
document = get_html(link, out_dir)
|
||||||
|
|
Loading…
Reference in a new issue