Documentation
¶
Overview ¶
Package firstrun gives a fresh install working defaults, the way Radarr 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 "Movies" library at the first usable path from Options.LibraryPaths (by default /data/media/movies in the single-/data-mount layout, falling back to /movies 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.
Prism matches a release against a profile by resolution, source AND codec, so each default quality is listed once per codec.
Index ¶
Constants ¶
const DefaultProfileName = "HD-1080p"
DefaultProfileName is the profile the default library uses.
Variables ¶
var DefaultLibraryPaths = []string{"/data/media/movies", "/movies"}
DefaultLibraryPaths is where the default movie library goes, in order of preference. A path is used when its parent folder exists (the folder itself is created if needed): /data/media/movies for the single /data mount, /movies for the older layout.
Functions ¶
func DefaultProfiles ¶
func DefaultProfiles() []quality.CreateRequest
DefaultProfiles returns the profiles a fresh install starts with, modelled on Radarr's. Qualities are ordered best first.