Manga

The ctx.manga API provides methods to interact with the manga system in Seanime.

Core Methods

getProviders

Gets all provider extensions

const providers = ctx.manga.getProviders()

for (const providerId in providers) {
    console.log("ID:", providerId, "Name:", providers[providerId]) 
}

getChapterContainer

Gets a chapter container for a specific manga, using the cache if available.

Parameters:

  • opts: Object containing:

    • mediaId: Number - The AniList media ID

    • provider: String - The manga provider identifier

    • titles: String[] (Optional) - Alternative titles to help find the manga

    • year: Number (Optional) - Release year to help with identification

Example:

getDownloadedChapters

Retrieves all downloaded manga chapters grouped by provider and manga ID.

Example:

getCollection

Retrieves the user's manga collection with all media list data.

Example:

refreshChapters

Deletes all cached chapters and refetches them based on the selected provider for each manga.

Parameters:

  • selectedProviderMap: Record<number, string> - A map of manga IDs to provider IDs

Example:

emptyCache

Empties cached chapters for a specific manga.

Parameters:

  • mediaId: Number - The AniList media ID

Example:

Last updated