[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
This commit is contained in:
ejurgensen 2023-12-17 21:12:31 +01:00
parent 37c10cbb10
commit cbfce63f4d

View File

@ -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: