feat: Update dockerfile to support readability

This commit is contained in:
Cristian 2020-08-11 11:52:43 -05:00
parent 2a68af1b94
commit 5dc7e63792
2 changed files with 8 additions and 3 deletions

View file

@ -50,8 +50,7 @@ def should_save_readability(link: Link, out_dir: Optional[str]=None) -> bool:
if is_static_file(link.url):
return False
output = Path(out_dir or link.link_dir) / 'readability.json'
print(output, SAVE_READABILITY)
output = Path(out_dir or link.link_dir) / 'readability'
return SAVE_READABILITY and (not output.exists())