Initialising last played cache.
This commit is contained in:
parent
70580298d2
commit
970efd7d9d
@ -3,6 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"dwelling-radio/internal/configuration"
|
"dwelling-radio/internal/configuration"
|
||||||
"dwelling-radio/internal/handlers"
|
"dwelling-radio/internal/handlers"
|
||||||
|
"dwelling-radio/internal/radio"
|
||||||
"dwelling-radio/pkg/logging"
|
"dwelling-radio/pkg/logging"
|
||||||
"dwelling-radio/pkg/server"
|
"dwelling-radio/pkg/server"
|
||||||
"flag"
|
"flag"
|
||||||
@ -39,6 +40,11 @@ func main() {
|
|||||||
}
|
}
|
||||||
defer logErr.Close()
|
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)
|
hand := handlers.NewRadioHandlers(config, logErr)
|
||||||
srv := server.NewHttpServer()
|
srv := server.NewHttpServer()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user