diff options
author | Christian Hesse <mail@eworm.de> | 2016-10-07 14:50:32 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2016-10-07 14:56:31 +0200 |
commit | c5cb165178d4d3dd5e59d43bb903e2cc48a55ca6 (patch) | |
tree | e2cd124aa95ee98fe545c880048a62c965652e5b | |
parent | 1d81f87dd158974354f0e29f9c84e088d311c2af (diff) | |
download | mpd-notification-c5cb165178d4d3dd5e59d43bb903e2cc48a55ca6.tar.gz mpd-notification-c5cb165178d4d3dd5e59d43bb903e2cc48a55ca6.tar.zst |
allow option 'oneline' in config file
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | mpd-notification.c | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -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); } |