From c5cb165178d4d3dd5e59d43bb903e2cc48a55ca6 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 7 Oct 2016 14:50:32 +0200 Subject: allow option 'oneline' in config file --- README.md | 1 + mpd-notification.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b2ca73b..3cdd266 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,7 @@ look like this: host = localhost port = 6600 music-dir = /srv/media/music/ + oneline = true scale = 200 timeout = 20 diff --git a/mpd-notification.c b/mpd-notification.c index 3022d7c..b35396a 100644 --- a/mpd-notification.c +++ b/mpd-notification.c @@ -227,8 +227,9 @@ int main(int argc, char ** argv) { file_workaround = iniparser_getboolean(ini, ":notification-file-workaround", file_workaround); mpd_host = iniparser_getstring(ini, ":host", mpd_host); mpd_port = iniparser_getint(ini, ":port", mpd_port); - notification_timeout = iniparser_getint(ini, ":timeout", notification_timeout); music_dir = iniparser_getstring(ini, ":music-dir", music_dir); + notification_timeout = iniparser_getint(ini, ":timeout", notification_timeout); + oneline = iniparser_getboolean(ini, ":oneline", oneline); scale = iniparser_getint(ini, ":scale", scale); } -- cgit v1.2.3-70-g09d2