Skip to content

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

432 B
Raw Blame
package discover

import "github.com/HolyArrs/holyarrs/app/backend/internal/library"

// CalendarTitles reads the titles filter of the calendar: all (the
// default), movies, shows or music.
func CalendarTitles(v string) (string, bool) {
	switch v {
	case "", library.CalendarAll:
		return library.CalendarAll, true
	case library.CalendarMovies, library.CalendarShows, library.CalendarMusic:
		return v, true
	}
	return "", false
}