mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
fix queue update
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user