2 Commits 64d570bdf7 ... 7b18122784

Author SHA1 Message Date
  Toni Fadjukoff 7b18122784 Fix comparison of tracks 6 years ago
  Toni Fadjukoff 64d570bdf7 Fix comparison of tracks 6 years ago
1 changed files with 1 additions and 2 deletions
  1. 1 2
      bot.go

+ 1 - 2
bot.go View File

10
 	"io"
10
 	"io"
11
 	"log"
11
 	"log"
12
 	"os"
12
 	"os"
13
-	"reflect"
14
 	"regexp"
13
 	"regexp"
15
 	"strconv"
14
 	"strconv"
16
 	"strings"
15
 	"strings"
341
 						log.Println("Failed to find tracks from DB", err)
340
 						log.Println("Failed to find tracks from DB", err)
342
 					}
341
 					}
343
 					log.Println("Checking if playlist needs updating", currentTracks, tracks, err)
342
 					log.Println("Checking if playlist needs updating", currentTracks, tracks, err)
344
-					if len(tracks) > 0 && (err != nil || !tracksEqual(currentTracks, tracks)) {
343
+					if len(tracks) > 0 && (err != nil || !tracksEqual(tracks, currentTracks)) {
345
 
344
 
346
 						if playlistID == "" {
345
 						if playlistID == "" {
347
 							log.Println("Creating new playlist")
346
 							log.Println("Creating new playlist")