mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 02:48:38 -04:00
A Channel can be tagged with a single Tag. The Channel can be moved into a Tag Directory according to the config.
This commit is contained in:
parent
2b8ef79561
commit
45167e4f32
39 changed files with 691 additions and 165 deletions
|
|
@ -10,7 +10,7 @@ import tempfile
|
|||
|
||||
from modules.archive import lib as archive_lib
|
||||
from wrolpi.cmd import READABILITY_BIN
|
||||
from wrolpi.common import html_screenshot, format_html_string, logger
|
||||
from wrolpi.common import html_screenshot, format_html_string, logger, format_html_file
|
||||
|
||||
logger = logger.getChild('singlefile_to_archive')
|
||||
|
||||
|
|
@ -31,6 +31,8 @@ def singlefile_to_archive_files(singlefile: pathlib.Path):
|
|||
"""Extract Readability files and Screenshot file next to the provided Singlefile."""
|
||||
contents = singlefile.read_bytes()
|
||||
|
||||
format_html_file(singlefile)
|
||||
|
||||
readability_html_path = singlefile.with_suffix('.readability.html')
|
||||
readability_json_path = singlefile.with_suffix('.readability.json')
|
||||
readability_text_path = singlefile.with_suffix('.readability.txt')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue