Documentation
¶
Overview ¶
Package firstrun gives a fresh install working defaults, the way Sonarr ships with quality profiles and asks only for a root folder.
On startup, and only while the database has no quality profiles and no libraries, it creates:
- default quality profiles (Any, SD, HD-720p, HD-1080p, HD - 720p/1080p, Ultra-HD), and
- a "TV" library at the first usable path from Options.LibraryPaths (by default /data/media/tv in the single-/data-mount layout, falling back to /tv for the older three-mount layout).
Anything the user has already set up is left alone: if a profile or a library exists, that part is skipped.
Index ¶
Constants ¶
const DefaultProfileName = "HD-1080p"
DefaultProfileName is the profile the default library uses.
Variables ¶
var DefaultLibraryPaths = []string{"/data/media/tv", "/tv"}
DefaultLibraryPaths is where the default TV library goes, in order of preference. A path is used when its parent folder exists (the folder itself is created if needed): /data/media/tv for the single /data mount, /tv for the older layout.
Functions ¶
func DefaultProfiles ¶
func DefaultProfiles() []quality.CreateRequest
DefaultProfiles returns the profiles a fresh install starts with, modelled on Sonarr's. Matching uses resolution + source only, so codec and HDR are left empty. Qualities are ordered best first.