mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -05:00
[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:
parent
37c10cbb10
commit
cbfce63f4d
2
src/db.c
2
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user