mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
check if track exists in db before sending file
This commit is contained in:
@@ -32,7 +32,7 @@ def get_folders(paths: list[str]):
|
||||
|
||||
for track in TrackStore.tracks:
|
||||
for path in paths:
|
||||
if track.filepath.startswith(path):
|
||||
if track.folder.startswith(path):
|
||||
count_dict[path] += 1
|
||||
|
||||
folders = [{"path": path, "count": count_dict[path]} for path in paths]
|
||||
|
||||
Reference in New Issue
Block a user