|
@@ -34,10 +34,11 @@ def get_indexable_content(results: QuerySet):
|
|
|
return []
|
|
return []
|
|
|
# This should come from a plugin interface
|
|
# This should come from a plugin interface
|
|
|
|
|
|
|
|
|
|
+ # TODO: banish this duplication and get these from the extractor file
|
|
|
if method == 'readability':
|
|
if method == 'readability':
|
|
|
return get_file_result_content(res, 'content.txt')
|
|
return get_file_result_content(res, 'content.txt')
|
|
|
elif method == 'singlefile':
|
|
elif method == 'singlefile':
|
|
|
- return get_file_result_content(res, '')
|
|
|
|
|
|
|
+ return get_file_result_content(res,'',use_pwd=True)
|
|
|
elif method == 'dom':
|
|
elif method == 'dom':
|
|
|
return get_file_result_content(res,'',use_pwd=True)
|
|
return get_file_result_content(res,'',use_pwd=True)
|
|
|
elif method == 'wget':
|
|
elif method == 'wget':
|