Class KodiAddonsNamespace

Constructors

Methods

  • Executes the specified addon with optional parameters.

    Parameters

    • addonid: string

      The ID of the addon to execute.

    • Optionalparams: string | string[] | { [key: string]: string }

      Optional parameters for the addon.

    • wait: boolean = false

      Whether to wait for the addon to finish execution (default is false).

    Returns Promise<string>

    A promise resolving to a string, typically empty on success.

  • Retrieves a list of all available addons based on the specified criteria.

    Parameters

    • type: AddonType = "unknown"

      The type of addons to retrieve (default is "unknown").

    • content: AddonContent = "unknown"

      The content type for plugins and scripts (default is "unknown").

    • enabled: boolean | "all" = "all"

      Filter addons by their enabled status ("all" to include all).

    • properties: AddonFields[] = []

      The properties to retrieve for each addon.

    • Optionallimits: ListLimits

      Pagination limits to apply.

    • installed: boolean | "all" = false

      Filter addons by their installed status ("all" to include all).

    Returns Promise<GetAddonsResponse>

    A promise resolving to a list of addons and limits information.

  • Enables or disables a specific addon.

    Parameters

    • addonid: string

      The ID of the addon to enable or disable.

    • enabled: GlobalToggle

      Whether to enable (true) or disable (false) the addon.

    Returns Promise<string>

    A promise resolving to a string, typically empty on success.