Savers
Savers manage the storage of downloaded manga pages. This component is essential for defining how and where manga pages are stored, such as on local disk, in a cloud storage bucket, or within a database.
Implementation
To create a custom saver, you should implement the ISaverAdapter ABC. This class mandates the implementation of the save method, which accepts a file path and a File object (containing the file name and data as a BytesIO object) and returns a boolean indicating the success of the operation.
Example
By extending the saver interface, Enma users can tailor the manga storage process to their specific requirements. Whether it's optimizing for speed, handling complex source-specific challenges, or integrating with unique storage solutions, custom savers unlock a high degree of flexibility and control. This extensibility is a cornerstone of Enma's design, ensuring it can adapt to a wide range of manga collection and management scenarios.
Last updated
Was this helpful?