mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 11:26:25 -05:00
Moving periodic download logic into manager so the manager can call it when it is enabled.
This commit is contained in:
parent
00acd9d891
commit
e80f24f690
4 changed files with 40 additions and 19 deletions
|
|
@ -57,7 +57,7 @@ async def call_single_file(url) -> bytes:
|
|||
See https://github.com/gildas-lormeau/SingleFile
|
||||
"""
|
||||
logger.info(f'archiving {url}')
|
||||
cmd = ['/usr/src/app/node_modules/single-file/cli/single-file', url,
|
||||
cmd = ['/usr/src/app/node_modules/single-file-cli/single-file', url,
|
||||
'--browser-executable-path', '/usr/bin/chromium-browser', '--browser-args', '["--no-sandbox"]',
|
||||
'--dump-content']
|
||||
logger.debug(f'archive cmd: {cmd}')
|
||||
|
|
@ -139,4 +139,4 @@ async def post_archive(request: Request):
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run('0.0.0.0', 8080, workers=4)
|
||||
app.run('0.0.0.0', 8080, workers=4, auto_reload=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue