mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +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, ""),
|
"folder": os.path.dirname(full_path).replace(helpers.home_dir, ""),
|
||||||
}
|
}
|
||||||
|
|
||||||
print(tags['filepath'])
|
|
||||||
|
|
||||||
return tags
|
return tags
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ def check_for_new_songs():
|
|||||||
time.sleep(300)
|
time.sleep(300)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def run_fast_scandir(_dir:str, ext: list):
|
def run_fast_scandir(_dir:str, ext: list):
|
||||||
"""
|
"""
|
||||||
Scans a directory for files with a specific extension. Returns a list of files and folders in the directory.
|
Scans a directory for files with a specific extension. Returns a list of files and folders in the directory.
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ const updateQueue = async (song, type) => {
|
|||||||
break;
|
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;
|
const new_queue = list;
|
||||||
localStorage.setItem("queue", JSON.stringify(new_queue));
|
localStorage.setItem("queue", JSON.stringify(new_queue));
|
||||||
state.queue.value = new_queue;
|
state.queue.value = new_queue;
|
||||||
|
|||||||
Reference in New Issue
Block a user