Try release group ID
This commit is contained in:
@ -54,6 +54,12 @@ def get_or_create_album(
|
|||||||
musicbrainz_id=mbid, name=name, artists__in=[artist]
|
musicbrainz_id=mbid, name=name, artists__in=[artist]
|
||||||
).first()
|
).first()
|
||||||
|
|
||||||
|
if not album:
|
||||||
|
mbid_group = album_dict.get("mb_group_id")
|
||||||
|
album = Album.objects.filter(
|
||||||
|
musicbrainz_releasegroup_id=mbid_group
|
||||||
|
).first()
|
||||||
|
|
||||||
if not album and name:
|
if not album and name:
|
||||||
mbid = mbid or album_dict["mb_id"]
|
mbid = mbid or album_dict["mb_id"]
|
||||||
album, album_created = Album.objects.get_or_create(musicbrainz_id=mbid)
|
album, album_created = Album.objects.get_or_create(musicbrainz_id=mbid)
|
||||||
|
|||||||
Reference in New Issue
Block a user