mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 14:44:29 -04:00
add headers.json and fix relative singlefile path resolving for sonic
This commit is contained in:
parent
c089501073
commit
24e24934f7
2 changed files with 3 additions and 1 deletions
|
@ -34,10 +34,11 @@ def get_indexable_content(results: QuerySet):
|
|||
return []
|
||||
# This should come from a plugin interface
|
||||
|
||||
# TODO: banish this duplication and get these from the extractor file
|
||||
if method == 'readability':
|
||||
return get_file_result_content(res, 'content.txt')
|
||||
elif method == 'singlefile':
|
||||
return get_file_result_content(res, '')
|
||||
return get_file_result_content(res,'',use_pwd=True)
|
||||
elif method == 'dom':
|
||||
return get_file_result_content(res,'',use_pwd=True)
|
||||
elif method == 'wget':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue