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
2024-04-07 19:19:48 +03:00
parent 14f3479baa
commit 4b04b8b155
5 changed files with 45 additions and 12 deletions
+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(
{