Class KodiPlaylistNamespace

Constructors

Methods

  • Clears all items from the specified playlist.

    Parameters

    • playlistid: string

      The ID of the playlist to clear.

    Returns Promise<string>

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

  • Retrieves all items from the specified playlist with optional filtering and pagination.

    Parameters

    • playlistid: string

      The ID of the playlist to retrieve items from.

    • Optionalproperties: string[]

      Optional list of properties to retrieve for each item.

    • Optionallimits: ListLimits

      Optional pagination limits.

    • Optionalsort: ListSort

      Optional sorting options.

    Returns Promise<PlaylistGetItemsResponse>

    A promise resolving to a list of playlist items and pagination details.

  • Retrieves the values of the specified properties for a playlist.

    Parameters

    • playlistid: string

      The ID of the playlist.

    • properties: string[]

      The list of properties to retrieve.

    Returns Promise<PlaylistGetPropertiesResponse>

    A promise resolving to the requested properties and their values.

  • Inserts item(s) into the specified playlist at the given position.

    Parameters

    • playlistid: string

      The ID of the playlist to insert items into.

    • position: number

      The position at which to insert the items.

    • item: PlaylistMediaItem | PlaylistMediaItem[]

      The media item or items to insert.

    Returns Promise<string>

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

  • Removes an item from the specified playlist at the given position.

    Parameters

    • playlistid: string

      The ID of the playlist to remove the item from.

    • position: number

      The position of the item to remove.

    Returns Promise<string>

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

  • Swaps two items within the specified playlist.

    Parameters

    • playlistid: string

      The ID of the playlist containing the items.

    • position1: number

      The position of the first item to swap.

    • position2: number

      The position of the second item to swap.

    Returns Promise<string>

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