mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-01 02:03:45 -04:00
[artwork] query playlist-wide artwork if availble
This commit is contained in:
parent
5a872dc436
commit
329c0620fc
@ -1743,8 +1743,19 @@ source_item_ownpl_get(struct artwork_ctx *ctx)
|
|||||||
if (!dbpli.path)
|
if (!dbpli.path)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
ctx->dbmfi->path = dbpli.path;
|
if (dbpli.artwork_url)
|
||||||
format = source_item_own_get(ctx);
|
{
|
||||||
|
format = artwork_get_byurl(ctx->evbuf, dbpli.artwork_url, ctx->max_w, ctx->max_h);
|
||||||
|
if (format > 0)
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Only handle non-remote paths with source_item_own_get()
|
||||||
|
if (dbpli.path && dbpli.path[0] == '/')
|
||||||
|
{
|
||||||
|
ctx->dbmfi->path = dbpli.path;
|
||||||
|
format = source_item_own_get(ctx);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx->dbmfi->path = mfi_path;
|
ctx->dbmfi->path = mfi_path;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user