Class KodiVideoLibraryNamespace

Constructors

Methods

  • Cleans the video library by removing entries for missing files.

    Parameters

    • showdialogs: boolean = true

      Whether to show dialogs during the cleaning process.

    Returns Promise<boolean>

    A promise resolving to a boolean indicating success.

  • Exports the video library to a specified file.

    Parameters

    • file: string

      The file path to export the library to.

    Returns Promise<string>

    A promise resolving to a string message upon success.

  • Retrieves a list of episodes with optional filtering and pagination.

    Parameters

    • tvshowid: string

      The ID of the TV show.

    • Optionalseason: number

      The season number.

    • Optionalproperties: VideoProperty[]

      Optional list of properties to retrieve.

    • Optionallimits: ListLimits

      Optional pagination limits.

    • Optionalsort: ListSort

      Optional sorting options.

    • Optionalfilter: any

      Optional filter criteria.

    Returns Promise<EpisodesResponse>

    A promise resolving to the EpisodesResponse object.

  • Refreshes the video library by scanning for new content.

    Returns Promise<boolean>

    A promise resolving to a boolean indicating success.

  • Removes a specific episode from the video library.

    Parameters

    • episodeid: string

      The ID of the episode to remove.

    Returns Promise<boolean>

    A promise resolving to a boolean indicating success.

  • Removes a specific movie from the video library.

    Parameters

    • movieid: string

      The ID of the movie to remove.

    Returns Promise<boolean>

    A promise resolving to a boolean indicating success.

  • Removes a specific music video from the video library.

    Parameters

    • musicvideoid: string

      The ID of the music video to remove.

    Returns Promise<boolean>

    A promise resolving to a boolean indicating success.

  • Removes a specific TV show from the video library.

    Parameters

    • tvshowid: string

      The ID of the TV show to remove.

    Returns Promise<boolean>

    A promise resolving to a boolean indicating success.

  • Scans the video library for new content.

    Returns Promise<boolean>

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

  • Updates the details of a specific episode.

    Parameters

    • episodeid: string

      The ID of the episode to update.

    • properties: Partial<EpisodeDetails>

      The properties to update.

    Returns Promise<boolean>

    A promise resolving to a boolean indicating success.

  • Updates the details of a specific movie.

    Parameters

    • movieid: string

      The ID of the movie to update.

    • properties: Partial<MovieDetails>

      The properties to update.

    Returns Promise<boolean>

    A promise resolving to a boolean indicating success.

  • Updates the details of a specific music video.

    Parameters

    • musicvideoid: string

      The ID of the music video to update.

    • properties: Partial<MusicVideoDetails>

      The properties to update.

    Returns Promise<boolean>

    A promise resolving to a boolean indicating success.

  • Updates the details of a specific TV show.

    Parameters

    • tvshowid: string

      The ID of the TV show to update.

    • properties: Partial<TVShowDetails>

      The properties to update.

    Returns Promise<boolean>

    A promise resolving to a boolean indicating success.