2 İşlemeler 64d570bdf7 ... 7b18122784

Yazar SHA1 Mesaj Tarih
  Toni Fadjukoff 7b18122784 Fix comparison of tracks 6 yıl önce
  Toni Fadjukoff 64d570bdf7 Fix comparison of tracks 6 yıl önce
1 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  1. 1 2
      bot.go

+ 1 - 2
bot.go Dosyayı Görüntüle

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")