From 7853f802698886991d1ba1e9c9ad0512186de97a Mon Sep 17 00:00:00 2001 From: chme Date: Thu, 30 May 2019 08:20:00 +0200 Subject: [PATCH] [conf] Readd old config options in mpd section as deprecated --- forked-daapd.conf.in | 4 ++-- src/conffile.c | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/forked-daapd.conf.in b/forked-daapd.conf.in index 329be07f..88029508 100644 --- a/forked-daapd.conf.in +++ b/forked-daapd.conf.in @@ -193,13 +193,13 @@ library { # rating_updates = false # Allows creating, deleting and modifying m3u playlists in the library directories. + # Only supported by the player web interface and some mpd clients # Defaults to being disabled. # allow_modifying_stored_playlists = false # A directory in one of the library directories that will be used as the default # playlist directory. forked-dapd creates new playlists in this directory if only - # a playlist name is provided by the mpd client (requires "allow_modify_stored_playlists" - # set to true). + # a playlist name is provided (requires "allow_modify_stored_playlists" set to true). # default_playlist_directory = "" } diff --git a/src/conffile.c b/src/conffile.c index 51210cee..00088293 100644 --- a/src/conffile.c +++ b/src/conffile.c @@ -180,6 +180,8 @@ static cfg_opt_t sec_mpd[] = CFG_INT("port", 6600, CFGF_NONE), CFG_INT("http_port", 0, CFGF_NONE), CFG_BOOL("clear_queue_on_stop_disable", cfg_false, CFGF_NONE), + CFG_BOOL("allow_modifying_stored_playlists", cfg_false, CFGF_NODEFAULT | CFGF_DEPRECATED), + CFG_STR("default_playlist_directory", NULL, CFGF_NODEFAULT | CFGF_DEPRECATED), CFG_END() };