From c986ae5d35002391d00194eb9d229a014779b7be Mon Sep 17 00:00:00 2001 From: vitrinekast Date: Wed, 27 Mar 2024 00:39:09 +0100 Subject: [PATCH] return epub --- script.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script.py b/script.py index 3f47aeb..239a655 100644 --- a/script.py +++ b/script.py @@ -139,7 +139,10 @@ print("Output the files"); # Export the html as book.html, which is used as an input for pandoc with open(f"/home/xpub/www/html/tl-dr/book_{time_ago_arg}.html", "w") as f: print(output, file=f) - # subprocess.run(['sh', '/home/xpub/www/html/tl-dr/create_book.sh', book_name]) + if not time_ago_arg: + subprocess.run(['sh', '/home/xpub/www/html/tl-dr/create_book.sh', book_name]) + else: + print("i did not create an epub since im an oldie") print("Finished"); # At the moment, we are not storing logs in the log folder anymore