move nav folder-paths into a new component (#66)

* move folder-paths into a new component

* move nav playlist title into new components
This commit is contained in:
Mungai Geoffrey
2022-06-07 12:51:47 +03:00
committed by GitHub
parent f7218875a6
commit 4e1e1b8979
5 changed files with 155 additions and 139 deletions
-2
View File
@@ -123,9 +123,7 @@ class getFnF:
dirs.append(Dir(**dir))
elif entry.is_file() and entry.name.endswith((".mp3", ".flac")):
files.append(entry.path)
s = time()
tracks = self.get_tracks(files)
print(f"{time() - s} seconds to get tracks")
folders = [create_folder(dir) for dir in dirs]
folders = filter(lambda f: f.trackcount > 0, folders)