In radiodj main fixed loading of an MLS file.
This commit is contained in:
parent
d8aa7076c3
commit
ae4b2c9dee
@ -43,11 +43,11 @@ func main() {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
|
||||
mlsf, err := os.ReadFile(*mostListenedSongPath)
|
||||
if err != nil {
|
||||
if data, err := os.ReadFile(*mostListenedSongPath); err == nil {
|
||||
if err := radio.LoadMostListenedSong(data); err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
radio.LoadMostListenedSong(mlsf)
|
||||
}
|
||||
|
||||
djh := ihttp.NewDJHandlers(lstnrs, plylst, *songListLen)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user