mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-23 20:53:19 -05:00
[artwork] Don't make online artwork searches if artist/album starts with "unknown"
This commit is contained in:
parent
3c98ca7928
commit
464f87a8db
@ -1166,6 +1166,13 @@ online_source_request_url_make(char *url, size_t url_size, const struct online_s
|
||||
goto error;
|
||||
}
|
||||
|
||||
if ((artist && strncasecmp("unknown", artist, strlen("unknown")) == 0) ||
|
||||
(album && strncasecmp("unknown", album, strlen("unknown")) == 0) )
|
||||
{
|
||||
DPRINTF(E_DBG, L_ART, "Skipping online artwork search for unknown artist/album\n");
|
||||
goto error;
|
||||
}
|
||||
|
||||
for (i = 0; src->query_parts[i].key; i++)
|
||||
{
|
||||
if (!album && strstr(src->query_parts[i].template, "$ALBUM$"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user