client: move table items to a independent component

This commit is contained in:
geoffrey45
2022-01-11 01:36:04 +03:00
parent 17cbe14217
commit 521c195570
8 changed files with 138 additions and 99 deletions
-2
View File
@@ -272,7 +272,6 @@ def getArtistData(artist: str):
@cache.cached()
def getFolderTree(folder: str = None):
req_dir = folder.replace('|', '/')
print(folder)
if folder == "home":
req_dir = home_dir
@@ -316,7 +315,6 @@ def getFolderTree(folder: str = None):
except:
pass
print(song['image'])
song['image'] = img_path + song['image']
return {"files": remove_duplicates(songs), "folders": sorted(folders, key=lambda i: i['name'])}