|
@@ -322,9 +322,9 @@ func (app *App) AutomateSection(title string) error {
|
322
|
322
|
} else if token.Expiry.Before(time.Now()) {
|
323
|
323
|
log.Println("Token has expired")
|
324
|
324
|
} else {
|
325
|
|
- log.Println("Checking if playlist needs updating")
|
326
|
325
|
playlistId, tracks := findPlaylist(changedWikiText)
|
327
|
326
|
currentTracks, err := app.db.FindPlaylistBySection(section.title)
|
|
327
|
+ log.Println("Checking if playlist needs updating", currentTracks, tracks)
|
328
|
328
|
if len(tracks) > 0 && (err != nil || reflect.DeepEqual(currentTracks, tracks)) {
|
329
|
329
|
|
330
|
330
|
if playlistId == "" {
|