Fixing build issues
This commit is contained in:
parent
b4867c629d
commit
09637395cc
|
@ -42,15 +42,15 @@ func (q *SongQueue) CurrentSong() Song {
|
|||
|
||||
// NextSong moves to the next Song in SongQueue. NextSong() removes the first Song in the queue.
|
||||
func (q *SongQueue) NextSong() {
|
||||
if q.CurrentSong().Playlist() != nil {
|
||||
if s, err := q.PeekNext(); err == nil {
|
||||
if s.Playlist() != nil && (q.CurrentSong().Playlist().ID() != s.Playlist().ID()) {
|
||||
if q.CurrentSong().Playlist() != nil && s.Playlist() != nil {
|
||||
if q.CurrentSong().Playlist().ID() != s.Playlist().ID() {
|
||||
q.CurrentSong().Playlist().DeleteSkippers()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
q.CurrentSong().Playlist().DeleteSkippers()
|
||||
}
|
||||
}
|
||||
q.queue = q.queue[1:]
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue