mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-24 11:59:16 -05:00
[db] Use album_artist if we have no artist metadata
This commit is contained in:
parent
8043ca1291
commit
9fc2065ada
4
src/db.c
4
src/db.c
@ -870,7 +870,9 @@ fixup_defaults(char **tag, enum fixup_type fixup, struct fixup_ctx *ctx)
|
||||
if (*tag)
|
||||
break;
|
||||
|
||||
if (ctx->mfi && ctx->mfi->orchestra && ctx->mfi->conductor)
|
||||
if (ctx->mfi && ctx->mfi->album_artist)
|
||||
*tag = strdup(ctx->mfi->album_artist);
|
||||
else if (ctx->mfi && ctx->mfi->orchestra && ctx->mfi->conductor)
|
||||
*tag = safe_asprintf("%s - %s", ctx->mfi->orchestra, ctx->mfi->conductor);
|
||||
else if (ctx->mfi && ctx->mfi->orchestra)
|
||||
*tag = strdup(ctx->mfi->orchestra);
|
||||
|
Loading…
x
Reference in New Issue
Block a user