make filenames consistent with program name

This commit is contained in:
Nick Sweeting 2020-08-01 11:59:07 -04:00 committed by Cristian
parent 37df00a08b
commit 5b6eb5e4ad
4 changed files with 6 additions and 7 deletions

View file

@ -23,7 +23,7 @@ from ..logging_util import TimedProgress
def should_save_singlefile(link: Link, out_dir: Optional[str]=None) -> bool:
out_dir = out_dir or link.link_dir
output = Path(out_dir or link.link_dir) / 'single-file.html'
output = Path(out_dir or link.link_dir) / 'singlefile.html'
return SAVE_SINGLEFILE and (not output.exists())
@ -32,7 +32,7 @@ def save_singlefile(link: Link, out_dir: Optional[str]=None, timeout: int=TIMEOU
"""download full site using single-file"""
out_dir = out_dir or link.link_dir
output = str(Path(out_dir).absolute() / "single-file.html")
output = str(Path(out_dir).absolute() / "singlefile.html")
# SingleFile CLI Docs: https://github.com/gildas-lormeau/SingleFile/tree/master/cli
cmd = [