Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfigDir ¶
GetConfigDir returns the platform-specific config directory
func GetConfigPath ¶
GetConfigPath returns the full path to the config file
Types ¶
type Config ¶
type Config struct {
// Legacy single-server fields (for backward compatibility)
PlexURL string `json:"plex_url,omitempty"`
PlexToken string `json:"plex_token"`
PlexUsername string `json:"plex_username,omitempty"`
// Multi-server support
Servers []PlexServer `json:"servers,omitempty"`
// Tool paths
MPVPath string `json:"mpv_path,omitempty"`
RclonePath string `json:"rclone_path,omitempty"`
FzfPath string `json:"fzf_path,omitempty"`
}
func (*Config) GetEnabledServers ¶
func (c *Config) GetEnabledServers() []PlexServer
GetEnabledServers returns all servers that should be indexed
func (*Config) MigrateLegacy ¶
MigrateLegacy converts old single-server config to multi-server format
type PlexServer ¶
Click to show internal directories.
Click to hide internal directories.