Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
unickorn committed May 17, 2021
1 parent 4b00f3e commit c6955af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tidal.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func Start() {
if status == Playing {
// NEW SONG

songChanged := song.Current.Track.Title != track || !song.Current.Track.ArtistMatches(artist)
songChanged := song.Current != nil && (song.Current.Track.Title != track || !song.Current.Track.ArtistMatches(artist))
looped := song.Current != nil && time.Now().Unix() > int64(song.Current.Track.Duration)+song.Current.StartTime+int64(song.Current.PausedTime)+1
if song.Current == nil || songChanged || looped {
// Load song
Expand Down

0 comments on commit c6955af

Please sign in to comment.