add favs count to fetch endpoint + remove filetype from track

This commit is contained in:
mungai-njoroge
2023-12-06 11:12:27 +03:00
parent fd71989c6d
commit 7f87cde96c
3 changed files with 42 additions and 4 deletions
+3
View File
@@ -78,6 +78,9 @@ def get_recently_played(limit=7):
if entry.type == "folder":
folder = entry.type_src
if not folder:
continue
is_home_dir = entry.type_src == "$home"
if is_home_dir:
-1
View File
@@ -213,7 +213,6 @@ def get_tags(filepath: str):
tags.date = parse_date(tags.year) or int(last_mod)
tags.filepath = win_replace_slash(filepath)
tags.filetype = filetype
tags.last_mod = last_mod
tags.artists = tags.artist