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,7 +10,6 @@ import (
10 10
 	"io"
11 11
 	"log"
12 12
 	"os"
13
-	"reflect"
14 13
 	"regexp"
15 14
 	"strconv"
16 15
 	"strings"
@@ -341,7 +340,7 @@ func (app *App) AutomateSection(title string) error {
341 340
 						log.Println("Failed to find tracks from DB", err)
342 341
 					}
343 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 345
 						if playlistID == "" {
347 346
 							log.Println("Creating new playlist")