more bugs. Cleaner dockerfile

This commit is contained in:
Remy Moll
2022-04-20 19:16:58 +02:00
parent 8f3ea25662
commit 024da446e7
7 changed files with 25 additions and 16 deletions

View File

@@ -13,7 +13,7 @@ def shrink_pdf(article):
return article # it probably was a youtube video
c = subprocess.run(
["gs", "-sDEVICE=pdfwrite", "-dPDFSETTINGS=/screen", "-dNOPAUSE", "-dBATCH", f"-sOutputFile={config['default_download_path']}/compressed.pdf", f'"{article.save_path + article.file_name}"'],
["gs", "-sDEVICE=pdfwrite", "-dPDFSETTINGS=/screen", "-dNOPAUSE", "-dBATCH", f"-sOutputFile={config['default_download_path']}/compressed.pdf", f"{article.save_path + article.file_name}"],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE
)