Fix a handful of little bugs

Refactor of manual scrobbling missed an import
KoReader book removed in sqlite fails import
Looking up album by name and artists screws up on MBid unique
This commit is contained in:
2023-04-13 10:18:38 -04:00
parent 9eef5d721b
commit f9dcc0d341
4 changed files with 9 additions and 2 deletions

View File

@ -50,7 +50,9 @@ def get_or_create_album(
)
return
album = Album.objects.filter(artists__in=[artist], name=name).first()
album = Album.objects.filter(
musicbrainz_id=mbid, name=name, artists__in=[artist]
).first()
if not album and name:
mbid = mbid or album_dict["mb_id"]