From dd81099b361c2be46133372bcb2cabc032a9def8 Mon Sep 17 00:00:00 2001 From: geoffrey45 Date: Sun, 6 Feb 2022 23:43:00 +0300 Subject: [PATCH] fix queue update --- server/app/functions.py | 2 -- server/app/helpers.py | 1 + src/composables/perks.js | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/server/app/functions.py b/server/app/functions.py index fc26bd59..a660ca10 100644 --- a/server/app/functions.py +++ b/server/app/functions.py @@ -273,8 +273,6 @@ def get_tags(full_path: str) -> dict: "folder": os.path.dirname(full_path).replace(helpers.home_dir, ""), } - print(tags['filepath']) - return tags diff --git a/server/app/helpers.py b/server/app/helpers.py index e7043a0b..ea77723f 100644 --- a/server/app/helpers.py +++ b/server/app/helpers.py @@ -40,6 +40,7 @@ def check_for_new_songs(): functions.populate() functions.populate_images() time.sleep(300) + def run_fast_scandir(_dir:str, ext: list): diff --git a/src/composables/perks.js b/src/composables/perks.js index 0c791ab0..fc25300a 100644 --- a/src/composables/perks.js +++ b/src/composables/perks.js @@ -90,7 +90,7 @@ const updateQueue = async (song, type) => { break; } - if (state.queue.value[0].id !== list[0].id) { + if (state.queue.value[0].track_id !== list[0].track_id) { const new_queue = list; localStorage.setItem("queue", JSON.stringify(new_queue)); state.queue.value = new_queue;