mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 12:33:03 +00:00
rewrite api/artist.py to remove artist cache
+ remove processing taylor's version
This commit is contained in:
@@ -19,7 +19,7 @@ def create_folder(path: str, count=0) -> Folder:
|
||||
name=folder.name,
|
||||
path=win_replace_slash(str(folder)),
|
||||
is_sym=folder.is_symlink(),
|
||||
count=count
|
||||
count=count,
|
||||
)
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ def get_folders(paths: list[str]):
|
||||
count_dict[path] += 1
|
||||
|
||||
folders = [{"path": path, "count": count_dict[path]} for path in paths]
|
||||
return [create_folder(f['path'], f['count']) for f in folders if f['count'] > 0]
|
||||
return [create_folder(f["path"], f["count"]) for f in folders if f["count"] > 0]
|
||||
|
||||
|
||||
class GetFilesAndDirs:
|
||||
|
||||
Reference in New Issue
Block a user