diff --git a/vrobbler/apps/music/musicbrainz.py b/vrobbler/apps/music/musicbrainz.py index 25ee77c..845524b 100644 --- a/vrobbler/apps/music/musicbrainz.py +++ b/vrobbler/apps/music/musicbrainz.py @@ -68,6 +68,7 @@ def lookup_album_dict_from_mb(release_name: str, artist_name: str) -> dict: return { "year": year, + "title": top_result["title"], "mb_id": top_result["id"], "mb_group_id": top_result["release-group"]["id"], } diff --git a/vrobbler/apps/music/utils.py b/vrobbler/apps/music/utils.py index 5e35019..21b8266 100644 --- a/vrobbler/apps/music/utils.py +++ b/vrobbler/apps/music/utils.py @@ -46,7 +46,7 @@ def get_or_create_album( album = None album_dict = lookup_album_dict_from_mb(name, artist_name=artist.name) - name = name or album_dict["name"] + name = name or album_dict["title"] mbid = mbid or album_dict["mb_id"] logger.debug(f"Looking up album {name} and mbid: {mbid}")