mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 07:35:57 -05:00
[artwork] Fix for --disable-spotify broken in commit c8e46aa
This commit is contained in:
parent
070cf6a5fc
commit
2272f99599
@ -962,6 +962,7 @@ artwork_get_byurl(struct evbuffer *artwork, const char *url, struct artwork_req_
|
|||||||
|
|
||||||
/* ------------------------- ONLINE SOURCE HANDLING ----------------------- */
|
/* ------------------------- ONLINE SOURCE HANDLING ----------------------- */
|
||||||
|
|
||||||
|
#ifdef SPOTIFY
|
||||||
static int
|
static int
|
||||||
credentials_get_spotify(char **auth_key, char **auth_secret)
|
credentials_get_spotify(char **auth_key, char **auth_secret)
|
||||||
{
|
{
|
||||||
@ -980,6 +981,15 @@ credentials_get_spotify(char **auth_key, char **auth_secret)
|
|||||||
*auth_secret = webapi_token.token;
|
*auth_secret = webapi_token.token;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
static int
|
||||||
|
credentials_get_spotify(char **auth_key, char **auth_secret)
|
||||||
|
{
|
||||||
|
*auth_key = NULL;
|
||||||
|
*auth_secret = NULL;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
credentials_get_discogs(char **auth_key, char **auth_secret)
|
credentials_get_discogs(char **auth_key, char **auth_secret)
|
||||||
|
Loading…
Reference in New Issue
Block a user