Symbolic Links
Enma offers a feature known as "Symbolic Links" to optimize the retrieval of manga chapters. This feature is particularly useful when working with manga that have a large number of chapters, as fetching all chapter data can be time-consuming. By utilizing symbolic links, Enma defers the full data fetch until it's specifically requested by the user. This document explains how to use symbolic links to efficiently access manga chapters.
What are Symbolic Links?
A Symbolic Link in the context of the Enma library is a reference to a manga chapter that doesn't immediately load all chapter details (such as pages). Instead, it provides a way to fetch those details on-demand. This approach significantly speeds up the process of getting manga information when the complete chapter data is not immediately needed.
How to Use Symbolic Links
Setting Up Enma
First, ensure you have Enma initialized and the desired source set. Here's a basic setup using the manganato
source:
Retrieving Manga with Symbolic Links
When retrieving manga details, you can specify the use of symbolic links. This tells Enma to create symbolic links for chapters instead of fetching all their data:
Accessing a Chapter through a Symbolic Link
After obtaining a manga with chapters represented as symbolic links, you can access a specific chapter's full details on-demand using the symbolic link. Here's how you fetch data for the first chapter:
Example
Symbolic links are a powerful feature in Enma that allow for efficient manga data retrieval, especially for manga with a large number of chapters. By deferring the full data fetch to when it's specifically needed, applications can perform faster and provide a better user experience.
Last updated
Was this helpful?