fix folder count

+ fix: file count when you have similar folder names
+ enforce trailing / on track folder paths
This commit is contained in:
mungai-njoroge committed 2024-04-07 19:19:48 +03:00
1 parent 14f3479baa
commit 4b04b8b155
5 files changed
+45 -12

No files matched your search

+3
View File
@@ -90,6 +90,9 @@ def get_recently_played(limit=7):
if is_home_dir:
folder = os.path.expanduser("~")
# print(folder)
# folder = os.path.join("/", folder, "")
# print(folder)
count = len([t for t in TrackStore.tracks if t.folder == folder])
items.append(
{