1
0

Initialising last played cache.

This commit is contained in:
Alexander Andreev 2022-03-31 15:40:18 +04:00
parent 70580298d2
commit 970efd7d9d
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -3,6 +3,7 @@ package main
import (
"dwelling-radio/internal/configuration"
"dwelling-radio/internal/handlers"
"dwelling-radio/internal/radio"
"dwelling-radio/pkg/logging"
"dwelling-radio/pkg/server"
"flag"
@ -39,6 +40,11 @@ func main() {
}
defer logErr.Close()
if err := radio.IcecastWatchPlaylist(config.Icecast.Playlist, config.ListLastNSongs); err != nil {
logErr.Fatalln(err)
}
defer radio.IcecastWatchClose()
hand := handlers.NewRadioHandlers(config, logErr)
srv := server.NewHttpServer()