Versions in this module Expand all Collapse all v0 v0.1.0 Feb 17, 2026 Changes in this version + const DefaultClientID + const DefaultConcurrentWorkers + const DefaultHistoryLimit + const DefaultLibraryPathPrefix + const DefaultMaxRetries + const DefaultPageSize + const DefaultSearchLimit + const DefaultTimeout + const MaxBackoffDuration + const RetryExponent + type Account struct + ID int + Name string + type ActiveSession struct + Device string + Progress string + Show string + State string + Title string + Type string + User string + type Client struct + func NewClient(serverURL, token string, opts ...ClientOption) (*Client, error) + func (c *Client) AddToPlaylist(ctx context.Context, playlistID string, ratingKeys []string) error + func (c *Client) ApplyMatch(ctx context.Context, ratingKey string, guid string, name string) error + func (c *Client) CreatePlaylist(ctx context.Context, title string, playlistType string, ratingKeys []string) (*PlaylistInfo, error) + func (c *Client) CreateSmartPlaylist(ctx context.Context, title string, playlistType string, sectionID string, ...) (*PlaylistInfo, error) + func (c *Client) DeletePlaylist(ctx context.Context, playlistID string) error + func (c *Client) FindShow(ctx context.Context, showName string) (string, string, error) + func (c *Client) GetAccounts(ctx context.Context) ([]Account, error) + func (c *Client) GetActiveSessions(ctx context.Context) ([]ActiveSession, error) + func (c *Client) GetAllLibraryItems(ctx context.Context, sectionID string) ([]*components.Metadata, error) + func (c *Client) GetDirectorID(ctx context.Context, sectionID string, directorName string) (string, error) + func (c *Client) GetDirectors(ctx context.Context, sectionID string) ([]DirectorInfo, error) + func (c *Client) GetHistory(ctx context.Context, limit int) ([]HistoryItem, error) + func (c *Client) GetItemMetadata(ctx context.Context, ratingKey string) (*components.Metadata, error) + func (c *Client) GetLibraryItemsConcurrent(ctx context.Context, sectionIDs []string, maxConcurrent int) ([]*components.Metadata, error) + func (c *Client) GetMaxRetries() int + func (c *Client) GetMoviesByDirector(ctx context.Context, sectionID string, directorName string) ([]MovieInfo, error) + func (c *Client) GetPlaylistItems(ctx context.Context, playlistID string) ([]SearchResult, error) + func (c *Client) GetSeasonEpisodes(ctx context.Context, showRatingKey string, seasonNum int) ([]EpisodeInfo, error) + func (c *Client) GetSections(ctx context.Context) ([]Library, error) + func (c *Client) GetServerURL() string + func (c *Client) GetServerUUID(ctx context.Context) (string, error) + func (c *Client) GetShowEpisodes(ctx context.Context, showRatingKey string) ([]Episode, error) + func (c *Client) GetStreams(ctx context.Context, ratingKey string) ([]StreamInfo, error) + func (c *Client) GetTimeout() time.Duration + func (c *Client) GetWatchHistory(ctx context.Context) ([]HistoryEntry, error) + func (c *Client) ListPlaylists(ctx context.Context) ([]PlaylistInfo, error) + func (c *Client) SearchLibrary(ctx context.Context, query string, sectionID *string, limit int) ([]SearchResult, error) + func (c *Client) SearchMatches(ctx context.Context, ratingKey string, title string, year int) ([]MatchResult, error) + func (c *Client) SetStreams(ctx context.Context, partID string, audioStreamID, subtitleStreamID int) error + type ClientOption func(*Client) + func WithMaxRetries(maxRetries int) ClientOption + func WithTimeout(timeout time.Duration) ClientOption + type DirectorInfo struct + Count int + ID string + Name string + type Episode struct + EpisodeNum int + RatingKey string + SeasonNum int + SeasonTitle string + ShowTitle string + Title string + type EpisodeInfo struct + Episode int + PartID string + RatingKey string + Season int + Title string + type HistoryEntry struct + AccountID int + DeviceID int + GrandparentTitle string + Index int + ParentIndex int + Title string + Type string + ViewedAt time.Time + type HistoryItem struct + GrandparentTitle string + LibrarySectionID *string + RatingKey *string + Thumb *string + Title string + Type string + ViewedAt int64 + type Library struct + ID string + Key *string + Location []string + Title *string + Type string + UUID string + type MatchResult struct + GUID string + Name string + Summary string + Year int + type MovieInfo struct + Directors []string + RatingKey string + Title string + Year int + type PlaylistInfo struct + Duration int64 + Key string + LeafCount int + PlaylistType string + RatingKey string + Smart bool + Title string + Type string + type PlexError struct + Err error + Op string + Section string + func (e *PlexError) Error() string + func (e *PlexError) Unwrap() error + type SearchResult struct + GrandparentTitle *string + Index *int + Key string + ParentIndex *int + ParentTitle *string + RatingKey string + Thumb *string + Title string + Type string + Year *int + type StreamInfo struct + Channels int + Codec string + Default bool + ID int + Language string + LanguageCode string + Selected bool + StreamType int + Title string