Skip to content

One self-hosted app for your shows, movies and music.

484 B
Raw Blame
package music

import "github.com/HolyArrs/holyarrs/app/backend/internal/core/parts"

// MusicOn reports whether music belongs in shared answers (live search,
// New & Popular): the part is on, or safe mode keeps every part's answers.
func (h *Handlers) MusicOn() bool {
	return h.PartIsOn(parts.Music) || h.Parts.SafeMode
}

// WarmNew starts New & Popular's Music lists building in the background (Music on).
func (h *Handlers) WarmNew() {
	if h.MusicOn() {
		h.warmMusicNew()
	}
}