Skip to content

Chapter Providing

As a reminder, here are the diffent functions expected and supported when choosing the capability CHAPTER_PROVIDING :

typescript
// Required
getChapters(sourceManga: SourceManga, sinceDate?: Date): Promise<Chapter[]>;
getChapterDetails(chapter: Chapter): Promise<ChapterDetails>;

// Optional
processTitlesForUpdates?(updateManager: UpdateManager, lastUpdateDate?: Date):  Promise<ChapterReadActionQueueProcessingResult>;

Even if your extension doesn't display chapters this can be interesting to get a general understanding of how things work and how types are handled.

getChapters

Let's look in detail at our function signature :

typescript
getChapters(sourceManga: SourceManga, sinceDate?: Date): Promise<Chapter[]>;