No need in preloading. Because in this moment liquidsoap starts and adds a new song that Icecast writes in playlist.log so IN_MODIFY is being triggered.
This commit is contained in:
parent
c02442ebcd
commit
eb6b0c68b3
@ -184,10 +184,6 @@ func (pw *PlaylistLogWatcher) Watch(playlistPath string, n int) (err error) {
|
|||||||
|
|
||||||
lastPlayedCache = make([]Song, 0, n)
|
lastPlayedCache = make([]Song, 0, n)
|
||||||
|
|
||||||
if songs, err := icecastLastPlayedSongs(playlistPath, 1); err == nil && len(songs) > 0 {
|
|
||||||
currentlyPlaying = songs[0]
|
|
||||||
}
|
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
|
Loading…
Reference in New Issue
Block a user