return epub

main
vitrinekast 8 months ago
parent 3a2ba97e65
commit c986ae5d35

@ -139,7 +139,10 @@ print("Output the files");
# Export the html as book.html, which is used as an input for pandoc # 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: with open(f"/home/xpub/www/html/tl-dr/book_{time_ago_arg}.html", "w") as f:
print(output, file=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"); print("Finished");
# At the moment, we are not storing logs in the log folder anymore # At the moment, we are not storing logs in the log folder anymore

Loading…
Cancel
Save