From b4c3cfeffbbd608b344d841902935cb655457064 Mon Sep 17 00:00:00 2001 From: TheOnlyWayUp Date: Tue, 10 Dec 2024 15:29:19 +0000 Subject: [PATCH] Include samples in Readme --- README.md | 11 +++++++---- src/api/src/create_book.py | 2 ++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9aced8a..b457095 100644 --- a/README.md +++ b/README.md @@ -8,15 +8,18 @@ Straightforward, Extendable WebApp to download Wattpad Books as EPUB Files. Stars ⭐ are appreciated. Thanks! ## Features -- ⚡ Lightweight Frontend and Minimal Javascript. +- ⚡ Lightweight Frontend. - 🪙 Supports Authentication (Download paid stories from your account!) - 🌐 API Support (Visit the `/docs` path on your instance for more.) -- 🐇 Fast Generation, Ratelimit Handling. +- 🐇 Fast Generation +- 🗃️ Caching, Ratelimit handling - 🐳 Docker Support -- 🏷️ Generated EPUB File includes Metadata. (Dublin Core Spec) -- 📖 Plays well with E-Readers. (Kindle Support with Send2Kindle, ReMarkable, KOBO, KOReader...) +- 🏷️ Generated books contain metadata, supported by Calibre and other E-Book Software. +- 📖 Plays well with E-Readers. (Send2Kindle, KOReader, ReMarkable, KOBO, Calibre Reader...) - 💻 Easily Hackable. Extend with ease. +Still not convinced? Take a look some [sample downloads](./samples/). + ## Set Up 1. Clone the repository: `git clone https://github.com/TheOnlyWayUp/WattpadDownloader/ && cd WattpadDownloader` diff --git a/src/api/src/create_book.py b/src/api/src/create_book.py index 6a240b8..7d6e8d3 100644 --- a/src/api/src/create_book.py +++ b/src/api/src/create_book.py @@ -686,6 +686,8 @@ style="margin-bottom: 1rem;">""".format( ): # PDF Generation with wkhtmltopdf, written to self.file + # At this stage, we have a bunch of HTML Files representing all the chapters that need to be generated. PDFKit handles ToC generation, so that's not included. + pdfkit.from_file( chapter_filenames, self.file.name,