Fixed issue #14

This commit is contained in:
DraftKinner 2025-02-21 11:47:31 -05:00
parent af988457c7
commit 4b0cc59404

View file

@ -125,11 +125,13 @@ class Artist(Collection):
artist = api.get_metadata_4_artist(ArtistId.from_base62(b62_id)) artist = api.get_metadata_4_artist(ArtistId.from_base62(b62_id))
for album_group in ( for album_group in (
artist.album_group artist.album_group
and artist.single_group or artist.single_group
and artist.compilation_group or artist.compilation_group
and artist.appears_on_group or artist.appears_on_group
): ):
album = api.get_metadata_4_album(AlbumId.from_hex(album_group.album[0].gid)) album = api.get_metadata_4_album(
AlbumId.from_base62(bytes_to_base62(album_group.album[0].gid))
)
for disc in album.disc: for disc in album.disc:
for track in disc.track: for track in disc.track:
metadata = [ metadata = [