Ask the terminal before using Kitty graphics; no fontconfig-based sextants on macOS
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019reK4DUGYqDUjniWYJvwUW
This commit is contained in:
@@ -117,6 +117,12 @@ func New(cfg *config.Config) *App {
|
||||
}
|
||||
|
||||
blocks, graphics := resolveCovers(cfg.UI.CoverStyle, os.Getenv)
|
||||
coverNote := "Posters: " + blocks.name + " block characters"
|
||||
if graphics {
|
||||
coverNote = "Posters: real images (the terminal confirmed the Kitty graphics protocol)"
|
||||
} else if cfg.UI.CoverStyle == "kitty" || kittyTerminal(os.Getenv) {
|
||||
coverNote += " (the terminal did not confirm the Kitty graphics protocol)"
|
||||
}
|
||||
a.coverStyle = blocks
|
||||
if graphics {
|
||||
a.gfx = a.newGraphics()
|
||||
@@ -127,6 +133,9 @@ func New(cfg *config.Config) *App {
|
||||
sonarrClient := sonarr.NewClient(cfg.Sonarr.URL, cfg.Sonarr.APIKey)
|
||||
a.radarr, a.sonarr = radarrClient, sonarrClient
|
||||
a.logs = newLogView(a)
|
||||
if a.covers {
|
||||
a.logs.add(levelInfo, coverNote)
|
||||
}
|
||||
sabClient := sabnzbd.NewClient(cfg.SABnzbd.URL, cfg.SABnzbd.APIKey)
|
||||
a.sab = sabClient
|
||||
a.probes = []probe{
|
||||
|
||||
Reference in New Issue
Block a user