emby

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 13 Imported by: ? modules, 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

Overview

Package emby implements a Pilot media server plugin for Emby. On import_complete it triggers a full library refresh.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	URL           string `json:"url"`
	APIKey        string `json:"api_key"`
	SkipTLSVerify bool   `json:"skip_tls_verify,omitempty"`
}

Config holds the user-supplied settings for an Emby server.

type Server

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

Server is an Emby media server plugin instance.

func New

func New(cfg Config) *Server

New creates a new Server from the given config.

func (*Server) Name

func (s *Server) Name() string

func (*Server) RefreshLibrary

func (s *Server) RefreshLibrary(ctx context.Context, _ string) error

RefreshLibrary triggers a full library refresh on the Emby server.

func (*Server) Test

func (s *Server) Test(ctx context.Context) error

Test verifies that the Emby server is reachable with the configured API key.

func (*Server) WatchHistory

func (s *Server) WatchHistory(ctx context.Context, since time.Time) ([]plugin.WatchEvent, error)

WatchHistory returns watch events since the given timestamp. Implements plugin.WatchProvider.

Jump to

Keyboard shortcuts

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