Skip to content

Commit fcf4f40

Browse files
artwork: fix building with --disable-artwork-network option (fixes #3328)
1 parent 4695de3 commit fcf4f40

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

plugins/artwork/artwork.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,12 +688,13 @@ mp4_extract_art (ddb_cover_info_t *cover) {
688688
return ret;
689689
}
690690

691+
692+
#ifdef USE_VFS_CURL
691693
static int
692694
web_lookups (const char *cache_path, ddb_cover_info_t *cover) {
693695
if (!cache_path) {
694696
return -1;
695697
}
696-
#ifdef USE_VFS_CURL
697698
if (artwork_enable_lfm) {
698699
if (!fetch_from_lastfm (cover->priv->artist, cover->priv->album, cache_path)) {
699700
cover->image_filename = strdup (cache_path);
@@ -727,10 +728,10 @@ web_lookups (const char *cache_path, ddb_cover_info_t *cover) {
727728
}
728729
}
729730
# endif
730-
#endif
731731

732732
return -1;
733733
}
734+
#endif
734735

735736
static char *
736737
vfs_path (const char *fname) {
@@ -792,6 +793,7 @@ recheck_missing_artwork (const char *input_fname, const time_t cache_mtime) {
792793
return res;
793794
}
794795

796+
#ifdef USE_VFS_CURL
795797
static void
796798
_touch (const char *path) {
797799
struct stat stat_struct;
@@ -809,6 +811,7 @@ _touch (const char *path) {
809811
#endif
810812
}
811813
}
814+
#endif
812815

813816
static void
814817
_free_blob (ddb_cover_info_t *cover) {
@@ -842,6 +845,7 @@ process_query (ddb_cover_info_t *cover) {
842845
// If all sources are off: just return / do nothing.
843846
if (!artwork_enable_local
844847
&& !artwork_enable_embedded
848+
#ifdef USE_VFS_CURL
845849
&& !artwork_enable_lfm
846850
&& !artwork_enable_wos
847851
# if ENABLE_MUSICBRAINZ
@@ -850,6 +854,7 @@ process_query (ddb_cover_info_t *cover) {
850854
# if ENABLE_ALBUMART_ORG
851855
&& !artwork_enable_aao
852856
# endif
857+
#endif
853858
) {
854859
return;
855860
}

0 commit comments

Comments
 (0)