diff --git a/archivebox/extractors/singlefile.py b/archivebox/extractors/singlefile.py
index 196765d8..60ebdab6 100644
--- a/archivebox/extractors/singlefile.py
+++ b/archivebox/extractors/singlefile.py
@@ -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 = [
diff --git a/archivebox/index/schema.py b/archivebox/index/schema.py
index 09476034..2129f5d3 100644
--- a/archivebox/index/schema.py
+++ b/archivebox/index/schema.py
@@ -365,7 +365,7 @@ class Link:
'screenshot.png',
'output.html',
'media',
- 'single-file.html'
+ 'singlefile.html'
)
return any(
@@ -406,7 +406,7 @@ class Link:
'google_favicon_path': 'https://www.google.com/s2/favicons?domain={}'.format(self.domain),
'wget_path': wget_output_path(self),
'warc_path': 'warc',
- 'singlefile_path': 'single-file.html',
+ 'singlefile_path': 'singlefile.html',
'pdf_path': 'output.pdf',
'screenshot_path': 'screenshot.png',
'dom_path': 'output.html',
@@ -430,4 +430,3 @@ class Link:
})
return canonical
-
diff --git a/archivebox/themes/legacy/link_details.html b/archivebox/themes/legacy/link_details.html
index 405d933c..447552ad 100644
--- a/archivebox/themes/legacy/link_details.html
+++ b/archivebox/themes/legacy/link_details.html
@@ -344,7 +344,7 @@
SingleFile
-
archive/single-file.html
+archive/singlefile.html
diff --git a/tests/test_extractors.py b/tests/test_extractors.py index 9b354f08..fb02044b 100644 --- a/tests/test_extractors.py +++ b/tests/test_extractors.py @@ -17,5 +17,5 @@ def test_ignore_methods(): def test_singlefile_works(tmp_path, process): add_process = subprocess.run(['archivebox', 'add', 'http://127.0.0.1:8080/static/example.com.html'], capture_output=True) archived_item_path = list(tmp_path.glob('archive/**/*'))[0] - output_file = archived_item_path / "single-file.html" + output_file = archived_item_path / "singlefile.html" assert output_file.exists()