1
0

In radiodj main fixed loading of an MLS file.

This commit is contained in:
Alexander Andreev 2023-10-01 06:10:27 +04:00
parent d8aa7076c3
commit ae4b2c9dee
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -43,11 +43,11 @@ func main() {
log.Fatalln(err) log.Fatalln(err)
} }
mlsf, err := os.ReadFile(*mostListenedSongPath) if data, err := os.ReadFile(*mostListenedSongPath); err == nil {
if err != nil { if err := radio.LoadMostListenedSong(data); err != nil {
log.Fatalln(err) log.Fatalln(err)
} }
radio.LoadMostListenedSong(mlsf) }
djh := ihttp.NewDJHandlers(lstnrs, plylst, *songListLen) djh := ihttp.NewDJHandlers(lstnrs, plylst, *songListLen)