fix: wrong albums appearing as appearances in artist page

This commit is contained in:
cwilvx
2024-07-28 17:12:00 +03:00
parent 56da0acd85
commit 16db3e1ad2
2 changed files with 1 additions and 14 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ def get_artist_albums(path: ArtistHashSchema, query: GetArtistAlbumsQuery):
res["singles_and_eps"].append(album)
elif album.type == "compilation":
res["compilations"].append(album)
elif album.albumhash in missing_albumhashes:
elif album.albumhash in missing_albumhashes or artisthash not in album.artisthashes:
res["appearances"].append(album)
else:
res["albums"].append(album)