Class KodiPVRNamespace

Constructors

Methods

  • Adds a new timer.

    Parameters

    • timer: Timer

      The timer object to add.

    Returns Promise<string>

    A promise resolving to the ID of the added timer.

  • Deletes an existing timer.

    Parameters

    • timerid: string

      The ID of the timer to delete.

    Returns Promise<boolean>

    A promise resolving to a boolean indicating success.

  • Retrieves detailed information about a specific broadcast.

    Parameters

    • broadcastid: number

      The ID of the broadcast.

    Returns Promise<BroadcastDetails>

    A promise resolving to the BroadcastDetails object.

  • Checks if a specific broadcast is playable.

    Parameters

    • broadcastid: number

      The ID of the broadcast.

    Returns Promise<boolean>

    A promise resolving to a boolean indicating if the broadcast is playable.

  • Retrieves detailed information about a specific channel.

    Parameters

    • channelid: number

      The ID of the channel.

    Returns Promise<ChannelDetails>

    A promise resolving to the ChannelDetails object.

  • Retrieves detailed information about a specific channel group.

    Parameters

    • channelgroupid: number

      The ID of the channel group.

    Returns Promise<ChannelGroupDetails>

    A promise resolving to the ChannelGroupDetails object.

  • Retrieves detailed information about a specific recording.

    Parameters

    • recordingid: number

      The ID of the recording.

    Returns Promise<RecordingDetails>

    A promise resolving to the RecordingDetails object.

  • Retrieves detailed information about a specific timer.

    Parameters

    • timerid: string

      The ID of the timer.

    Returns Promise<Timer>

    A promise resolving to the Timer object.

  • Initiates a recording on a specified channel.

    Parameters

    • channelid: number

      The ID of the channel to record from.

    • title: string

      The title of the recording.

    • starttime: string

      The start time of the recording in ISO 8601 format.

    • endtime: string

      The end time of the recording in ISO 8601 format.

    Returns Promise<RecordingDetails>

    A promise resolving to the details of the created recording.

  • Initiates a scan for new recordings or channels.

    Parameters

    • clientid: number

      The ID of the PVR client to scan.

    • reset: boolean = false

      Whether to reset the existing database before scanning (optional).

    Returns Promise<boolean>

    A promise resolving to a boolean indicating if the scan was successful.

  • Toggles the enabled state of a specific timer.

    Parameters

    • timerid: string

      The ID of the timer to toggle.

    Returns Promise<boolean>

    A promise resolving to a boolean indicating if the toggle was successful.