2 Комити 64d570bdf7 ... 7b18122784

Аутор SHA1 Порука Датум
  Toni Fadjukoff 7b18122784 Fix comparison of tracks пре 6 година
  Toni Fadjukoff 64d570bdf7 Fix comparison of tracks пре 6 година
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      bot.go

+ 1 - 2
bot.go Прегледај датотеку

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