[artwork] Don't make online artwork searches if artist/album starts with "unknown"

This commit is contained in:
ejurgensen 2025-01-01 19:58:40 +01:00 committed by Alain Nussbaumer
parent 3c98ca7928
commit 464f87a8db

View File

@ -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$"))