[artwork] Ignore artwork requests for items with a non persistent id

This commit is contained in:
chme 2018-05-10 07:23:11 +02:00
parent 843fbeb066
commit c77acbddf2
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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;