diff --git a/pkg/utils/dwelling.go b/pkg/utils/dwelling.go index f524790..6ec125c 100644 --- a/pkg/utils/dwelling.go +++ b/pkg/utils/dwelling.go @@ -19,6 +19,13 @@ func MainSite(host string) string { return "https://arav.su" } +func Site(host string) string { + if strings.Contains(host, ".su") { + return "https://radio.arav.su" + } + return "http://" + host +} + // ToClientTimezone converts given time to timezone set in a // X-Client-Timezone header. If this header is not set, then // converts to UTC.