kodi

package
v2.23.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: GPL-3.0 Imports: 32 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectAlbum added in v2.21.0

func CollectAlbum(ctx context.Context, client KodiClient, path string) ([]platforms.CollectionItem, error)

CollectAlbum lists the songs on the album a path names.

func CollectArtist added in v2.21.0

func CollectArtist(ctx context.Context, client KodiClient, path string) ([]platforms.CollectionItem, error)

CollectArtist lists the songs by the artist a path names.

func CollectTVShow added in v2.21.0

func CollectTVShow(ctx context.Context, client KodiClient, path string) ([]platforms.CollectionItem, error)

CollectTVShow lists the episodes Kodi holds for the show a path names.

func NewKodiAlbumLauncher

func NewKodiAlbumLauncher() platforms.Launcher

NewKodiAlbumLauncher creates a KodiAlbum launcher for album collection playback

func NewKodiArtistLauncher

func NewKodiArtistLauncher() platforms.Launcher

NewKodiArtistLauncher creates a KodiArtist launcher for artist collection playback

func NewKodiLocalLauncher

func NewKodiLocalLauncher() platforms.Launcher

NewKodiLocalLauncher creates a standard KodiLocalVideo launcher for direct video file playback

func NewKodiMovieLauncher

func NewKodiMovieLauncher() platforms.Launcher

NewKodiMovieLauncher creates a standard KodiMovie launcher for library movie playback

func NewKodiMusicLauncher

func NewKodiMusicLauncher() platforms.Launcher

NewKodiMusicLauncher creates a KodiLocalAudio launcher for local music files

func NewKodiSongLauncher

func NewKodiSongLauncher() platforms.Launcher

NewKodiSongLauncher creates a KodiSong launcher for individual song playback

func NewKodiTVLauncher

func NewKodiTVLauncher() platforms.Launcher

NewKodiTVLauncher creates a standard KodiTVEpisode launcher for library TV episode playback

func NewKodiTVShowLauncher

func NewKodiTVShowLauncher() platforms.Launcher

NewKodiTVShowLauncher creates a KodiTVShow launcher for TV show collection playback

func ScanAlbums

func ScanAlbums(
	ctx context.Context,
	client KodiClient,
	_ *config.Instance,
	_ string,
	results []platforms.ScanResult,
) ([]platforms.ScanResult, error)

ScanAlbums scans albums from Kodi library using the provided client

func ScanArtists

func ScanArtists(
	ctx context.Context,
	client KodiClient,
	_ *config.Instance,
	_ string,
	results []platforms.ScanResult,
) ([]platforms.ScanResult, error)

ScanArtists scans artists from Kodi library using the provided client

func ScanMovies

func ScanMovies(
	ctx context.Context,
	client KodiClient,
	_ *config.Instance,
	_ string,
	results []platforms.ScanResult,
) ([]platforms.ScanResult, error)

ScanMovies scans movies from Kodi library using the provided client

func ScanSongs

func ScanSongs(
	ctx context.Context,
	client KodiClient,
	_ *config.Instance,
	_ string,
	results []platforms.ScanResult,
) ([]platforms.ScanResult, error)

ScanSongs scans songs from Kodi library using the provided client

func ScanTV

func ScanTV(
	ctx context.Context,
	client KodiClient,
	_ *config.Instance,
	_ string,
	results []platforms.ScanResult,
) ([]platforms.ScanResult, error)

ScanTV scans TV shows and episodes from Kodi library using the provided client

func ScanTVShows

func ScanTVShows(
	ctx context.Context,
	client KodiClient,
	_ *config.Instance,
	_ string,
	results []platforms.ScanResult,
) ([]platforms.ScanResult, error)

ScanTVShows scans TV shows from Kodi library using the provided client

func Tracking added in v2.21.0

func Tracking(serverURL string) bool

Tracking reports whether a watcher is currently following a launch on the Kodi at serverURL (the URL a client's GetURL returns). A tracked launch reports its own end, so a poller that sees no players must leave the media alone until the watcher is gone.

Types

type APIError

type APIError struct {
	Message string `json:"message"`
	Code    int    `json:"code"`
}

APIError represents a Kodi JSON-RPC error

func (*APIError) Error added in v2.23.0

func (e *APIError) Error() string

type APIMethod

type APIMethod string

APIMethod represents Kodi JSON-RPC API methods

const (
	APIMethodPlayerOpen              APIMethod = "Player.Open"
	APIMethodPlayerGetActivePlayers  APIMethod = "Player.GetActivePlayers"
	APIMethodPlayerGetItem           APIMethod = "Player.GetItem"
	APIMethodPlayerStop              APIMethod = "Player.Stop"
	APIMethodVideoLibraryGetMovies   APIMethod = "VideoLibrary.GetMovies"
	APIMethodVideoLibraryGetTVShows  APIMethod = "VideoLibrary.GetTVShows"
	APIMethodVideoLibraryGetEpisodes APIMethod = "VideoLibrary.GetEpisodes"

	APIMethodVideoLibraryGetMovieDetails   APIMethod = "VideoLibrary.GetMovieDetails"
	APIMethodVideoLibraryGetEpisodeDetails APIMethod = "VideoLibrary.GetEpisodeDetails"

	// Audio Library
	APIMethodAudioLibraryGetSongs   APIMethod = "AudioLibrary.GetSongs"
	APIMethodAudioLibraryGetAlbums  APIMethod = "AudioLibrary.GetAlbums"
	APIMethodAudioLibraryGetArtists APIMethod = "AudioLibrary.GetArtists"

	// Playlist Management (for collections)
	APIMethodPlaylistClear APIMethod = "Playlist.Clear"
	APIMethodPlaylistAdd   APIMethod = "Playlist.Add"

	// Player Controls
	APIMethodPlayerPlayPause APIMethod = "Player.PlayPause"
	APIMethodPlayerSetSpeed  APIMethod = "Player.SetSpeed"
	APIMethodPlayerGoTo      APIMethod = "Player.GoTo"
	APIMethodPlayerSetRepeat APIMethod = "Player.SetRepeat"

	// Application Control
	APIMethodApplicationQuit APIMethod = "Application.Quit"
)

Kodi API methods

type APIPayload

type APIPayload struct {
	Params  any       `json:"params,omitempty"`
	JSONRPC string    `json:"jsonrpc"`
	ID      string    `json:"id"`
	Method  APIMethod `json:"method"`
}

APIPayload represents a Kodi JSON-RPC request

type APIResponse

type APIResponse struct {
	Error   *APIError       `json:"error,omitempty"`
	ID      string          `json:"id"`
	JSONRPC string          `json:"jsonrpc"`
	Result  json.RawMessage `json:"result"`
}

APIResponse represents a Kodi JSON-RPC response

type Album

type Album struct {
	Label  string `json:"label"`
	Artist string `json:"displayartist"` // Use displayartist (string) instead of artist (array)
	ID     int    `json:"albumid"`
	Year   int    `json:"year"`
}

Album represents an album in Kodi's library

type Artist

type Artist struct {
	Label string `json:"label"`
	ID    int    `json:"artistid"`
}

Artist represents an artist in Kodi's library

type AudioLibraryGetAlbumsParams added in v2.7.0

type AudioLibraryGetAlbumsParams struct {
	Properties []string `json:"properties,omitempty"`
}

AudioLibraryGetAlbumsParams represents parameters for AudioLibrary.GetAlbums API method

type AudioLibraryGetAlbumsResponse

type AudioLibraryGetAlbumsResponse struct {
	Albums []Album `json:"albums"`
}

AudioLibraryGetAlbumsResponse represents the response from AudioLibrary.GetAlbums

type AudioLibraryGetArtistsParams added in v2.7.0

type AudioLibraryGetArtistsParams struct {
	Properties []string `json:"properties,omitempty"`
}

AudioLibraryGetArtistsParams represents parameters for AudioLibrary.GetArtists API method

type AudioLibraryGetArtistsResponse

type AudioLibraryGetArtistsResponse struct {
	Artists []Artist `json:"artists"`
}

AudioLibraryGetArtistsResponse represents the response from AudioLibrary.GetArtists

type AudioLibraryGetSongsParams

type AudioLibraryGetSongsParams struct {
	Filter     *SongFilter `json:"filter,omitempty"`
	Properties []string    `json:"properties,omitempty"`
}

AudioLibraryGetSongsParams represents parameters for AudioLibrary.GetSongs API method

type AudioLibraryGetSongsResponse

type AudioLibraryGetSongsResponse struct {
	Songs []Song `json:"songs"`
}

AudioLibraryGetSongsResponse represents the response from AudioLibrary.GetSongs

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client implements the KodiClient interface

func (*Client) APIRequest

func (c *Client) APIRequest(ctx context.Context, method APIMethod, params any) (json.RawMessage, error)

APIRequest makes a raw JSON-RPC request to Kodi API

func (*Client) FastForward added in v2.10.0

func (c *Client) FastForward(ctx context.Context) error

FastForward increases playback speed of the first active player

func (*Client) GetActivePlayers

func (c *Client) GetActivePlayers(ctx context.Context) ([]Player, error)

GetActivePlayers retrieves all active players in Kodi

func (*Client) GetAlbumSongs added in v2.21.0

func (c *Client) GetAlbumSongs(ctx context.Context, albumID int) ([]Song, error)

GetAlbumSongs retrieves the songs of one album from Kodi's library

func (*Client) GetAlbums

func (c *Client) GetAlbums(ctx context.Context) ([]Album, error)

GetAlbums retrieves all albums from Kodi's library

func (*Client) GetArtistSongs added in v2.21.0

func (c *Client) GetArtistSongs(ctx context.Context, artistID int) ([]Song, error)

GetArtistSongs retrieves the songs of one artist from Kodi's library

func (*Client) GetArtists

func (c *Client) GetArtists(ctx context.Context) ([]Artist, error)

GetArtists retrieves all artists from Kodi's library

func (*Client) GetEpisodeDetails added in v2.23.0

func (c *Client) GetEpisodeDetails(ctx context.Context, episodeID int) (*Episode, error)

GetEpisodeDetails retrieves one episode by ID. It returns nil when Kodi has no episode with that ID.

func (*Client) GetEpisodes

func (c *Client) GetEpisodes(ctx context.Context, tvShowID int) ([]Episode, error)

GetEpisodes retrieves all episodes for a specific TV show from Kodi's library

func (*Client) GetMovieDetails added in v2.23.0

func (c *Client) GetMovieDetails(ctx context.Context, movieID int) (*Movie, error)

GetMovieDetails retrieves one movie by ID. It returns nil when Kodi has no movie with that ID.

func (*Client) GetMovies

func (c *Client) GetMovies(ctx context.Context) ([]Movie, error)

GetMovies retrieves all movies from Kodi's library

func (*Client) GetPlayerItem added in v2.7.0

func (c *Client) GetPlayerItem(ctx context.Context, playerID int) (*PlayerItem, error)

GetPlayerItem retrieves the currently playing item for a specific player

func (*Client) GetSongs

func (c *Client) GetSongs(ctx context.Context) ([]Song, error)

GetSongs retrieves all songs from Kodi's library

func (*Client) GetTVShows

func (c *Client) GetTVShows(ctx context.Context) ([]TVShow, error)

GetTVShows retrieves all TV shows from Kodi's library

func (*Client) GetURL

func (c *Client) GetURL() string

GetURL returns the current Kodi API URL

func (*Client) GoTo added in v2.10.0

func (c *Client) GoTo(ctx context.Context, direction string) error

GoTo navigates to next or previous item in playlist. Direction must be "next" or "previous".

func (*Client) LaunchAlbum

func (c *Client) LaunchAlbum(path string) error

LaunchAlbum launches an album by ID from Kodi's library

func (*Client) LaunchArtist

func (c *Client) LaunchArtist(path string) error

LaunchArtist launches an artist by ID from Kodi's library

func (*Client) LaunchFile

func (c *Client) LaunchFile(path string) error

LaunchFile launches a local file or URL in Kodi

func (*Client) LaunchMovie

func (c *Client) LaunchMovie(path string) error

LaunchMovie launches a movie by ID from Kodi's library

func (*Client) LaunchSong

func (c *Client) LaunchSong(path string) error

LaunchSong launches a song by ID from Kodi's library

func (*Client) LaunchTVEpisode

func (c *Client) LaunchTVEpisode(path string) error

LaunchTVEpisode launches a TV episode by ID from Kodi's library

func (*Client) LaunchTVShow

func (c *Client) LaunchTVShow(path string) error

LaunchTVShow resolves a durable show identity and launches its episodes as a playlist.

func (*Client) PlayPause added in v2.10.0

func (c *Client) PlayPause(ctx context.Context) error

PlayPause toggles play/pause on the first active player

func (*Client) Quit added in v2.7.0

func (c *Client) Quit(ctx context.Context) error

Quit gracefully exits Kodi application

func (*Client) Rewind added in v2.10.0

func (c *Client) Rewind(ctx context.Context) error

Rewind decreases playback speed of the first active player

func (*Client) SetPaused added in v2.21.0

func (c *Client) SetPaused(ctx context.Context, paused bool) error

SetPaused pauses or resumes the first active player. Unlike PlayPause it is idempotent: pausing a paused player or resuming a playing one changes nothing.

func (*Client) SetURL

func (c *Client) SetURL(url string)

SetURL sets the Kodi API URL

func (*Client) Stop

func (c *Client) Stop(ctx context.Context) error

Stop stops all active players in Kodi

type Episode

type Episode struct {
	UniqueIDs map[string]string `json:"uniqueid,omitempty"`
	Label     string            `json:"label"`
	ShowTitle string            `json:"showtitle,omitempty"`
	File      string            `json:"file,omitempty"`
	ID        int               `json:"episodeid"`
	TVShowID  int               `json:"tvshowid"`
	Season    int               `json:"season"`
	Episode   int               `json:"episode"`
}

Episode represents a TV episode in Kodi's library

type Item

type Item struct {
	Label      string `json:"label,omitempty"`
	File       string `json:"file,omitempty"`
	MovieID    int    `json:"movieid,omitempty"`
	TVShowID   int    `json:"tvshowid,omitempty"`
	EpisodeID  int    `json:"episodeid,omitempty"`
	SongID     int    `json:"songid,omitempty"`
	AlbumID    int    `json:"albumid,omitempty"`
	ArtistID   int    `json:"artistid,omitempty"`
	PlaylistID int    `json:"playlistid,omitempty"`
}

Item represents a media item that can be played

type ItemOptions

type ItemOptions struct {
	// Repeat is sent as "off" only when Core is tracking natural completion,
	// so a repeating Kodi cannot loop the item forever.
	Repeat string `json:"repeat,omitempty"`
	Resume bool   `json:"resume"`
}

ItemOptions represents options for playing a media item

type KodiClient

type KodiClient interface {
	// LaunchFile launches a local file or URL in Kodi
	LaunchFile(path string) error

	// LaunchMovie launches a movie by ID from Kodi's library
	// Path format: "kodi-movie://[id]/[name]"
	LaunchMovie(path string) error

	// LaunchTVEpisode launches a TV episode by ID from Kodi's library
	// Path format: "kodi-episode://[id]/[name]"
	LaunchTVEpisode(path string) error

	// Stop stops all active players in Kodi
	Stop(ctx context.Context) error

	// PlayPause toggles play/pause on the first active player
	PlayPause(ctx context.Context) error

	// SetPaused pauses (true) or resumes (false) the first active player.
	// Repeating the current state is a no-op.
	SetPaused(ctx context.Context, paused bool) error

	// FastForward increases playback speed of the first active player
	FastForward(ctx context.Context) error

	// Rewind decreases playback speed of the first active player
	Rewind(ctx context.Context) error

	// GoTo navigates to next or previous item in playlist.
	// Direction should be "next" or "previous".
	GoTo(ctx context.Context, direction string) error

	// Quit gracefully exits Kodi application
	Quit(ctx context.Context) error

	// GetActivePlayers retrieves all active players in Kodi
	GetActivePlayers(ctx context.Context) ([]Player, error)

	// GetPlayerItem retrieves the currently playing item for a specific player
	GetPlayerItem(ctx context.Context, playerID int) (*PlayerItem, error)

	// GetMovies retrieves all movies from Kodi's library
	GetMovies(ctx context.Context) ([]Movie, error)

	// GetMovieDetails retrieves one movie by ID, or nil when Kodi has none
	GetMovieDetails(ctx context.Context, movieID int) (*Movie, error)

	// GetEpisodeDetails retrieves one episode by ID, or nil when Kodi has none
	GetEpisodeDetails(ctx context.Context, episodeID int) (*Episode, error)

	// GetTVShows retrieves all TV shows from Kodi's library
	GetTVShows(ctx context.Context) ([]TVShow, error)

	// GetEpisodes retrieves all episodes for a specific TV show from Kodi's library
	GetEpisodes(ctx context.Context, tvShowID int) ([]Episode, error)

	// GetSongs retrieves all songs from Kodi's library
	GetSongs(ctx context.Context) ([]Song, error)

	// GetAlbumSongs retrieves the songs of one album from Kodi's library
	GetAlbumSongs(ctx context.Context, albumID int) ([]Song, error)

	// GetArtistSongs retrieves the songs of one artist from Kodi's library
	GetArtistSongs(ctx context.Context, artistID int) ([]Song, error)

	// GetAlbums retrieves all albums from Kodi's library
	GetAlbums(ctx context.Context) ([]Album, error)

	// GetArtists retrieves all artists from Kodi's library
	GetArtists(ctx context.Context) ([]Artist, error)

	// LaunchSong launches a song by ID from Kodi's library
	// Path format: "kodi-song://[id]/[name]"
	LaunchSong(path string) error

	// LaunchAlbum launches an album by ID using playlist generation
	// Path format: "kodi-album://[id]/[name]"
	LaunchAlbum(path string) error

	// LaunchArtist launches an artist by ID using playlist generation
	// Path format: "kodi-artist://[id]/[name]"
	LaunchArtist(path string) error

	// LaunchTVShow launches a TV show using its current Kodi ID or durable provider identity.
	// Path format: "kodi-show://[id]/[name]?[provider]=[identity]"
	LaunchTVShow(path string) error

	// GetURL returns the current Kodi API URL
	GetURL() string

	// SetURL sets the Kodi API URL
	SetURL(url string)

	// APIRequest makes a raw JSON-RPC request to Kodi API
	APIRequest(ctx context.Context, method APIMethod, params any) (json.RawMessage, error)
}

KodiClient defines the interface for Kodi API operations. This interface enables proper mocking and TDD for Kodi integration.

func NewClient

func NewClient(cfg *config.Instance) KodiClient

NewClient creates a new Kodi client with configuration-based URL. Uses "Kodi" as the default group for configuration lookup.

func NewClientWithLauncherID

func NewClientWithLauncherID(cfg *config.Instance, launcherID string, groups []string) KodiClient

NewClientWithLauncherID creates a new Kodi client with group-aware configuration lookup. Uses LookupLauncherDefaults to merge settings from matching groups and exact launcher ID.

type Movie

type Movie struct {
	UniqueIDs map[string]string `json:"uniqueid,omitempty"`
	Label     string            `json:"label"`
	File      string            `json:"file,omitempty"`
	ID        int               `json:"movieid"`
}

Movie represents a movie in Kodi's library

type Player

type Player struct {
	Type string `json:"type"`
	ID   int    `json:"playerid"`
}

Player represents an active Kodi player

type PlayerGetItemParams added in v2.7.0

type PlayerGetItemParams struct {
	Properties []string `json:"properties"`
	PlayerID   int      `json:"playerid"`
}

PlayerGetItemParams represents parameters for Player.GetItem API method

type PlayerGetItemResponse added in v2.7.0

type PlayerGetItemResponse struct {
	Item PlayerItem `json:"item"`
}

PlayerGetItemResponse represents the response from Player.GetItem

type PlayerGoToParams added in v2.10.0

type PlayerGoToParams struct {
	To       string `json:"to"`
	PlayerID int    `json:"playerid"`
}

PlayerGoToParams represents parameters for Player.GoTo API method

type PlayerItem added in v2.7.0

type PlayerItem struct {
	Label     string   `json:"label"`
	Type      string   `json:"type"`
	File      string   `json:"file,omitempty"`
	Title     string   `json:"title,omitempty"`
	Album     string   `json:"album,omitempty"`
	ShowTitle string   `json:"showtitle,omitempty"`
	Artist    []string `json:"artist,omitempty"`
	Season    int      `json:"season,omitempty"`
	Episode   int      `json:"episode,omitempty"`
	Year      int      `json:"year,omitempty"`
}

PlayerItem represents the currently playing item

type PlayerOpenParams

type PlayerOpenParams struct {
	Item    Item        `json:"item"`
	Options ItemOptions `json:"options,omitempty"`
}

PlayerOpenParams represents parameters for Player.Open API method

type PlayerPlayPauseParams added in v2.10.0

type PlayerPlayPauseParams struct {
	PlayerID int `json:"playerid"`
}

PlayerPlayPauseParams represents parameters for Player.PlayPause API method

type PlayerSetPlayingParams added in v2.21.0

type PlayerSetPlayingParams struct {
	PlayerID int  `json:"playerid"`
	Play     bool `json:"play"`
}

PlayerSetPlayingParams represents parameters for Player.PlayPause with an explicit play state: true resumes playback, false pauses it.

type PlayerSetRepeatParams added in v2.21.0

type PlayerSetRepeatParams struct {
	Repeat   string `json:"repeat"`
	PlayerID int    `json:"playerid"`
}

PlayerSetRepeatParams represents parameters for Player.SetRepeat API method

type PlayerSetSpeedParams added in v2.10.0

type PlayerSetSpeedParams struct {
	Speed    string `json:"speed"`
	PlayerID int    `json:"playerid"`
}

PlayerSetSpeedParams represents parameters for Player.SetSpeed API method

type PlayerStopParams

type PlayerStopParams struct {
	PlayerID int `json:"playerid"`
}

PlayerStopParams represents parameters for Player.Stop API method

type PlaylistAddEpisodesParams

type PlaylistAddEpisodesParams struct {
	Item       []PlaylistItemEpisodeID `json:"item"`
	PlaylistID int                     `json:"playlistid"`
}

PlaylistAddEpisodesParams represents parameters for Playlist.Add API method with episodes

type PlaylistAddParams

type PlaylistAddParams struct {
	Item       []PlaylistItemSongID `json:"item"`
	PlaylistID int                  `json:"playlistid"`
}

PlaylistAddParams represents parameters for Playlist.Add API method

type PlaylistClearParams

type PlaylistClearParams struct {
	PlaylistID int `json:"playlistid"`
}

PlaylistClearParams represents parameters for Playlist.Clear API method

type PlaylistItemEpisodeID

type PlaylistItemEpisodeID struct {
	EpisodeID int `json:"episodeid"`
}

PlaylistItemEpisodeID represents an episode item for playlist operations

type PlaylistItemSongID

type PlaylistItemSongID struct {
	SongID int `json:"songid"`
}

PlaylistItemSongID represents a song item for playlist operations

type Song

type Song struct {
	Label    string `json:"label"`
	File     string `json:"file,omitempty"`
	Artist   string `json:"displayartist"` // Use displayartist (string) instead of artist (array)
	Album    string `json:"album"`
	ID       int    `json:"songid"`
	AlbumID  int    `json:"albumid"`
	Duration int    `json:"duration"`
	Track    int    `json:"track"`
	Disc     int    `json:"disc"`
}

Song represents a song in Kodi's library

type SongFilter added in v2.21.0

type SongFilter struct {
	AlbumID  int `json:"albumid,omitempty"`
	ArtistID int `json:"artistid,omitempty"`
}

SongFilter narrows AudioLibrary.GetSongs to the songs of one album or artist.

type TVShow

type TVShow struct {
	UniqueIDs map[string]string `json:"uniqueid,omitempty"`
	Label     string            `json:"label"`
	ID        int               `json:"tvshowid"`
}

TVShow represents a TV show in Kodi's library

type VideoLibraryGetEpisodeDetailsParams added in v2.23.0

type VideoLibraryGetEpisodeDetailsParams struct {
	Properties []string `json:"properties,omitempty"`
	EpisodeID  int      `json:"episodeid"`
}

VideoLibraryGetEpisodeDetailsParams represents parameters for VideoLibrary.GetEpisodeDetails.

type VideoLibraryGetEpisodeDetailsResponse added in v2.23.0

type VideoLibraryGetEpisodeDetailsResponse struct {
	Episode Episode `json:"episodedetails"`
}

VideoLibraryGetEpisodeDetailsResponse represents the response from VideoLibrary.GetEpisodeDetails.

type VideoLibraryGetEpisodesParams

type VideoLibraryGetEpisodesParams struct {
	Properties []string `json:"properties,omitempty"`
	TVShowID   int      `json:"tvshowid"`
}

VideoLibraryGetEpisodesParams represents parameters for VideoLibrary.GetEpisodes API method

type VideoLibraryGetEpisodesResponse

type VideoLibraryGetEpisodesResponse struct {
	Episodes []Episode `json:"episodes"`
}

VideoLibraryGetEpisodesResponse represents the response from VideoLibrary.GetEpisodes

type VideoLibraryGetMovieDetailsParams added in v2.23.0

type VideoLibraryGetMovieDetailsParams struct {
	Properties []string `json:"properties,omitempty"`
	MovieID    int      `json:"movieid"`
}

VideoLibraryGetMovieDetailsParams represents parameters for VideoLibrary.GetMovieDetails.

type VideoLibraryGetMovieDetailsResponse added in v2.23.0

type VideoLibraryGetMovieDetailsResponse struct {
	Movie Movie `json:"moviedetails"`
}

VideoLibraryGetMovieDetailsResponse represents the response from VideoLibrary.GetMovieDetails.

type VideoLibraryGetMoviesParams added in v2.7.0

type VideoLibraryGetMoviesParams struct {
	Properties []string `json:"properties,omitempty"`
}

VideoLibraryGetMoviesParams represents parameters for VideoLibrary.GetMovies API method

type VideoLibraryGetMoviesResponse

type VideoLibraryGetMoviesResponse struct {
	Movies []Movie `json:"movies"`
}

VideoLibraryGetMoviesResponse represents the response from VideoLibrary.GetMovies

type VideoLibraryGetTVShowsParams added in v2.7.0

type VideoLibraryGetTVShowsParams struct {
	Properties []string `json:"properties,omitempty"`
}

VideoLibraryGetTVShowsParams represents parameters for VideoLibrary.GetTVShows API method

type VideoLibraryGetTVShowsResponse

type VideoLibraryGetTVShowsResponse struct {
	TVShows []TVShow `json:"tvshows"`
}

VideoLibraryGetTVShowsResponse represents the response from VideoLibrary.GetTVShows

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL