fix: artist track count

+ fix: album type on artits page
+ sort by release date help text on get all
This commit is contained in:
cwilvx
2024-07-03 15:57:05 +03:00
parent a5634f267f
commit 2e63aa4a41
4 changed files with 13 additions and 5 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ def get_album_tracks_and_info(body: AlbumHashSchema):
tracks = TrackDb.get_tracks_by_albumhash(albumhash)
album.trackcount = len(tracks)
album.duration = sum(t.duration for t in tracks)
album.type = album.check_type(
album.check_type(
tracks=tracks, singleTrackAsSingle=UserConfig().showAlbumsAsSingles
)