fix: duplication of artist albums on album/from-artist

+ remove more fields from artist, album and artist models on serializers
This commit is contained in:
cwilvx
2024-07-05 04:43:39 +03:00
parent 678eed3ab6
commit a76e91cf5a
6 changed files with 53 additions and 27 deletions
+10 -1
View File
@@ -23,11 +23,20 @@ def serialize_for_card(album: Album):
props_to_remove = {
"duration",
"count",
"artisthashes",
"albumartists_hashes",
"created_date",
"og_title",
"base_title",
"genres",
"playcount"
"playcount",
"trackcount",
"type",
"playduration",
"genrehashes",
"extra",
"id",
"lastplayed",
}
return album_serializer(album, props_to_remove)