From ca971c34ad6d253aa183f10db30895bb79d67316 Mon Sep 17 00:00:00 2001 From: Ral Date: Sun, 26 Dec 2021 03:43:52 +0100 Subject: [PATCH] Another try try --- public/index.html | 2 +- ...bd8a32436fd867b559f405cd7bd633a5a2d52981fc30152512c.js} | 7 ++----- public/music/index.html | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) rename public/{main.b67a4b646a3847aa36131a70016e64dd9f5aec7555b1e993ca99e620f6c78bd4.js => main.d2de05d8f07febd8a32436fd867b559f405cd7bd633a5a2d52981fc30152512c.js} (98%) diff --git a/public/index.html b/public/index.html index 7674bd9..de42128 100644 --- a/public/index.html +++ b/public/index.html @@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/public/main.b67a4b646a3847aa36131a70016e64dd9f5aec7555b1e993ca99e620f6c78bd4.js b/public/main.d2de05d8f07febd8a32436fd867b559f405cd7bd633a5a2d52981fc30152512c.js similarity index 98% rename from public/main.b67a4b646a3847aa36131a70016e64dd9f5aec7555b1e993ca99e620f6c78bd4.js rename to public/main.d2de05d8f07febd8a32436fd867b559f405cd7bd633a5a2d52981fc30152512c.js index 3b70271..f43b181 100644 --- a/public/main.b67a4b646a3847aa36131a70016e64dd9f5aec7555b1e993ca99e620f6c78bd4.js +++ b/public/main.d2de05d8f07febd8a32436fd867b559f405cd7bd633a5a2d52981fc30152512c.js @@ -90,9 +90,6 @@ return scheduleFiltered; }; var is_new_music = (musicA, musicB) => { - console.log("Eval new music?"); - console.log(musicA); - console.log(musicB); let isSame; if (musicA.length !== 0 && musicB.length !== 0) { isSame = musicA[0].artist === musicB[0].artist && musicA[0].title === musicB[0].title; @@ -105,8 +102,8 @@ }; var music_filter = (musicA, musicB) => { let isNew = is_new_music(musicA, musicB); - console.log("New? " + isNew); - musicB.forEach((m) => m.updated = true); + console.log("New music? " + isNew); + musicB.forEach((m) => m.updated = isNew); return musicB; }; diff --git a/public/music/index.html b/public/music/index.html index ee29352..095d4bd 100644 --- a/public/music/index.html +++ b/public/music/index.html @@ -13,6 +13,6 @@ - + \ No newline at end of file