From c164f8e16069c270757998f6bd1bee1fc8942c55 Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Mon, 27 Oct 2008 13:51:11 +0100 Subject: [PATCH] Support new api (20) --- src/plugin.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugin.c b/src/plugin.c index b592c70..116bbda 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -52,6 +52,10 @@ static void amazon_set_enabled(int enabled) static int fetch_cover_priority(){ return cfg_get_single_value_as_int_with_default(config, "cover-amazon", "priority", 80); } +static void fetch_cover_priority_set(int priority) +{ + cfg_set_single_value_as_int(config, "cover-amazon", "priority", priority); +} static int fetch_metadata(mpd_Song *song,MetaDataType type, char **path) { @@ -325,6 +329,7 @@ gmpcPrefPlugin cam_pref = { }; gmpcMetaDataPlugin cam_cover = { .get_priority = fetch_cover_priority, + .set_priority = fetch_cover_priority_set, .get_image = fetch_metadata }; -- 2.11.4.GIT