Forgot a spotify enabled condition
This commit is contained in:
parent
0f3400fe99
commit
c7aaf6eff3
|
@ -860,6 +860,7 @@ artwork_get_own_image(char *path, int max_w, int max_h, int format, struct evbuf
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (strncmp(path, "spotify:", strlen("spotify:")) == 0)
|
if (strncmp(path, "spotify:", strlen("spotify:")) == 0)
|
||||||
|
#ifdef HAVE_SPOTIFY_H
|
||||||
{
|
{
|
||||||
if (!(format & ART_CAN_JPEG))
|
if (!(format & ART_CAN_JPEG))
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -871,6 +872,9 @@ artwork_get_own_image(char *path, int max_w, int max_h, int format, struct evbuf
|
||||||
else
|
else
|
||||||
return ART_FMT_JPEG;
|
return ART_FMT_JPEG;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
return -1;
|
||||||
|
#endif
|
||||||
|
|
||||||
ret = snprintf(artwork, sizeof(artwork), "%s", path);
|
ret = snprintf(artwork, sizeof(artwork), "%s", path);
|
||||||
if ((ret < 0) || (ret >= sizeof(artwork)))
|
if ((ret < 0) || (ret >= sizeof(artwork)))
|
||||||
|
|
Loading…
Reference in New Issue