Skip to content

Commit

Permalink
[db] Use songalbumid's that are distinct for data_kind
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ejurgensen committed Dec 17, 2023
1 parent 37c10cb commit cbfce63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cbfce63

Please sign in to comment.