mediaserver

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package mediaserver provides shared types for interacting with media server APIs.

Supported media servers include Plex, Jellyfin, Emby, Audiobookshelf, Kavita, Komga, Navidrome, Stash, Tautulli, and Tdarr, each available in their respective sub-packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Library

type Library struct {
	// ID is the section identifier.
	ID string `json:"id"`
	// Name is the display name of the library.
	Name string `json:"name"`
	// Type classifies the library (movie, show, music, photo).
	Type string `json:"type"`
	// ItemCount is the total number of items in the library.
	ItemCount int `json:"itemCount,omitempty"`
}

Library represents a media library section.

type ServerInfo

type ServerInfo struct {
	// Name is the friendly name of the server.
	Name string `json:"name"`
	// Version is the server software version.
	Version string `json:"version"`
	// MachineID is the unique machine identifier.
	MachineID string `json:"machineId"`
	// Platform is the OS or platform the server runs on.
	Platform string `json:"platform,omitempty"`
}

ServerInfo holds basic information about a media server.

type Session

type Session struct {
	// ID is the session identifier.
	ID string `json:"id"`
	// UserName is the name of the user playing content.
	UserName string `json:"userName"`
	// Title is the title of the playing media.
	Title string `json:"title"`
	// State is the playback state (playing, paused, buffering).
	State string `json:"state"`
}

Session represents an active playback session.

Directories

Path Synopsis
plex module
tautulli module

Jump to

Keyboard shortcuts

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