Bahamut Anime Downloader

    Interface DownloaderConfig

    Configuration options for the downloader.

    interface DownloaderConfig {
        concurrency: number;
        continueDir: null | string;
        fetcher: (
            input: string | URL | Request,
            init?: RequestInit,
        ) => Promise<Response>;
        id: string;
        retries: number;
        subtle: SubtleCrypto;
    }
    Index

    Properties

    concurrency: number

    The maximum number of concurrent downloads.

    continueDir: null | string

    Directory to continue downloading from. If provided and files exist, will skip downloading those segments.

    fetcher: (
        input: string | URL | Request,
        init?: RequestInit,
    ) => Promise<Response>

    The fetch function to use for downloading files. It requires to be able to handle cookie states.

    Type declaration

      • (input: string | URL | Request, init?: RequestInit): Promise<Response>
      • The shorthand fetch function.

        Parameters

        • input: string | URL | Request
        • Optionalinit: RequestInit

        Returns Promise<Response>

    id: string

    The ID of the downloader. Only used for logging.

    retries: number

    The number of times to retry downloading a segment.

    subtle: SubtleCrypto

    The webcrypto.SubtleCrypto implementation to use for decrypting segments.

    MMNEPVFCICPMFPCPTTAAATR