From cbfce63f4dc6574fa791c7bdd4c42086695e12b7 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sun, 17 Dec 2023 21:12:31 +0100 Subject: [PATCH] [db] Use songalbumid's that are distinct for data_kind Means the same album won't contain both e.g. Spotify and local tracks, they will instead be shown as two albums. Ref issue #1650 --- src/db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db.c b/src/db.c index 339802b7ed..fc1dacf28b 100644 --- a/src/db.c +++ b/src/db.c @@ -1138,7 +1138,7 @@ fixup_defaults(char **tag, enum fixup_type fixup, struct fixup_ctx *ctx) case DB_FIXUP_SONGALBUMID: if (ctx->mfi && ctx->mfi->songalbumid == 0) - ctx->mfi->songalbumid = two_str_hash(ctx->mfi->album_artist, ctx->mfi->album); + ctx->mfi->songalbumid = two_str_hash(ctx->mfi->album_artist, ctx->mfi->album) + ctx->mfi->data_kind; break; case DB_FIXUP_TITLE: