Downloading Chapters
Enma provides a robust way to download manga chapters directly to your local storage or any compatible storage system through the ISaverAdapter
interface. This feature is essential for users looking to create offline manga collections or manage large volumes of manga data efficiently.
Requirements
Before proceeding, ensure you have Enma set up and configured to use the manganato
source. You will also need to have a manga identifier for the manga you wish to download chapters from.
Download Setup
The following components are crucial for downloading chapters
Downloader: Responsible for fetching chapter pages from the source.
Saver: Defines where and how downloaded pages are saved.
Threaded Download: Optimize download performance using multiple threads.
Example
Here's how you can download a chapter using Enma:
download_chapter
Function Explained
download_chapter
Function ExplainedKey Components
Threaded: A data class to manage threaded downloads, including whether to use threading and the number of threads.
path: Contains all necessary data for downloading a chapter, such as the chapter itself, path to save, downloader, saver, and threading details.
DownloadChapterUseCase: Orchestrates the downloading process, handling both threaded and synchronous downloads.
Handling Downloads and Saves
The process uses a queue to manage downloaded pages, ensuring that saving to storage happens even as downloads continue. This is particularly efficient when using threads, as it allows for concurrent downloading and saving, speeding up the overall process.
Conclusion
Using Enma to download manga chapters is a powerful and flexible way to manage manga collections. By leveraging threading and customizable saving options, users can efficiently download large volumes of manga data for offline viewing or archival purposes.
Last updated
Was this helpful?