mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-09 05:34:58 -05:00
Add configuration option to disable individual artwork
This commit is contained in:
@@ -1246,13 +1246,16 @@ artwork_get_item(int id, int max_w, int max_h, struct evbuffer *evbuf)
|
||||
if (!mfi)
|
||||
return -1;
|
||||
|
||||
/*
|
||||
* Try the individual artwork first
|
||||
*/
|
||||
ret = artwork_get_item_mfi(mfi, max_w, max_h, evbuf);
|
||||
if (cfg_getbool(cfg_getsec(cfg, "library"), "ownartwork_disable"))
|
||||
ret = -1;
|
||||
else
|
||||
/*
|
||||
* Try the individual artwork first
|
||||
*/
|
||||
ret = artwork_get_item_mfi(mfi, max_w, max_h, evbuf);
|
||||
|
||||
/*
|
||||
* No individual artwork, try group artwork
|
||||
* No individual artwork or individual artwork disabled, try group artwork
|
||||
*/
|
||||
if (ret < 0)
|
||||
{
|
||||
|
||||
@@ -76,6 +76,7 @@ static cfg_opt_t sec_library[] =
|
||||
CFG_STR("name_podcasts", "Podcasts", CFGF_NONE),
|
||||
CFG_STR("name_audiobooks", "Audiobooks", CFGF_NONE),
|
||||
CFG_STR_LIST("artwork_basenames", "{artwork,cover,Folder}", CFGF_NONE),
|
||||
CFG_BOOL("ownartwork_disable", cfg_false, CFGF_NONE),
|
||||
CFG_STR_LIST("filetypes_ignore", "{.db,.ini,.db-journal,.pdf}", CFGF_NONE),
|
||||
CFG_BOOL("filescan_disable", cfg_false, CFGF_NONE),
|
||||
CFG_BOOL("itunes_overrides", cfg_false, CFGF_NONE),
|
||||
|
||||
Reference in New Issue
Block a user