From c77acbddf29cfa80059880268af7099d6747b82f Mon Sep 17 00:00:00 2001 From: chme Date: Thu, 10 May 2018 07:23:11 +0200 Subject: [PATCH] [artwork] Ignore artwork requests for items with a non persistent id --- src/artwork.c | 3 +++ src/artwork_legacy.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/artwork.c b/src/artwork.c index 7ae53ed4..dece08b8 100644 --- a/src/artwork.c +++ b/src/artwork.c @@ -1072,6 +1072,9 @@ artwork_get_item(struct evbuffer *evbuf, int id, int max_w, int max_h) DPRINTF(E_DBG, L_ART, "Artwork request for item %d\n", id); + if (id == DB_MEDIA_FILE_NON_PERSISTENT_ID) + return -1; + memset(&ctx, 0, sizeof(struct artwork_ctx)); ctx.qp.type = Q_ITEMS; diff --git a/src/artwork_legacy.c b/src/artwork_legacy.c index e25d502c..777ded57 100644 --- a/src/artwork_legacy.c +++ b/src/artwork_legacy.c @@ -1499,6 +1499,9 @@ artwork_get_item(struct evbuffer *evbuf, int id, int max_w, int max_h) DPRINTF(E_DBG, L_ART, "Artwork request for item %d\n", id); + if (id == DB_MEDIA_FILE_NON_PERSISTENT_ID) + return -1; + memset(&ctx, 0, sizeof(struct artwork_ctx)); ctx.qp.type = Q_ITEMS;