mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-15 16:53:18 -05:00
[artwork] Change cache strategy for artwork_url_get
Credit @sfeakes
This commit is contained in:
parent
b44e5b3ede
commit
552c201cf3
@ -275,11 +275,14 @@ static struct artwork_source artwork_item_source[] =
|
||||
.cache = ON_SUCCESS | ON_FAILURE,
|
||||
},
|
||||
{
|
||||
// Here we must use STASH because this handler must always just be a
|
||||
// backup when artwork_url_get fails. If we used ON_SUCCESS this image
|
||||
// would go in permanent cache, and artwork_url_get not get called again.
|
||||
.name = "playlist own",
|
||||
.handler = source_item_ownpl_get,
|
||||
.data_kinds = (1 << DATA_KIND_HTTP),
|
||||
.media_kinds = MEDIA_KIND_ALL,
|
||||
.cache = ON_SUCCESS | ON_FAILURE,
|
||||
.cache = STASH,
|
||||
},
|
||||
{
|
||||
.name = "Spotify search web api (files)",
|
||||
|
Loading…
x
Reference in New Issue
Block a user