store playcount and duration on the track table

+ allow sorting all items with those two
+ add methods to update scrobble info
This commit is contained in:
cwilvx
2024-06-30 19:33:13 +03:00
parent 4a9f804e70
commit b9ad07441a
15 changed files with 161 additions and 45 deletions
+1
View File
@@ -27,6 +27,7 @@ def serialize_for_card(album: Album):
"og_title",
"base_title",
"genres",
"playcount"
}
return album_serializer(album, props_to_remove)
+1
View File
@@ -14,6 +14,7 @@ def serialize_for_card(artist: Artist):
"trackcount",
"duration",
"albumcount",
"playcount",
}
for key in props_to_remove:
+1
View File
@@ -20,6 +20,7 @@ def serialize_track(track: Track, to_remove: set = {}, remove_disc=True) -> dict
"artist_hashes",
"created_date",
"fav_userids",
"playcount",
}.union(to_remove)
if not remove_disc: