Initialising last played cache.
This commit is contained in:
parent
70580298d2
commit
970efd7d9d
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user