logic/envvars.go

14 lines
486 B
Go
Raw Normal View History

2023-01-13 10:21:45 +01:00
package logic
import (
"git.milar.in/milarin/envvars/v2"
"git.milar.in/nyaanime/model"
)
var (
// preferred torrent properties
PreferredLanguages = ParsePreferredStringProps(envvars.StringSlice("PREFERRED_LANGUAGES", "|", []string{}))
PreferredSubtitles = ParsePreferredStringProps(envvars.StringSlice("PREFERRED_SUBTITLES", "|", []string{}))
PreferredResolutions = ParsePreferredProps(envvars.StringSlice("PREFERRED_RESOLUTIONS", "|", []string{}), model.ParseResolution)
)