Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
f6742687
Commit
f6742687
authored
Oct 26, 2009
by
Viliam Mateicka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpd.conf: new bool config value for enabling/disabling inotify update
parent
2bfddd43
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
2 deletions
+17
-2
mpd.conf.5
doc/mpd.conf.5
+5
-0
mpdconf.example
doc/mpdconf.example
+4
-0
conf.c
src/conf.c
+1
-0
conf.h
src/conf.h
+1
-0
main.c
src/main.c
+6
-2
No files found.
doc/mpd.conf.5
View file @
f6742687
...
...
@@ -248,6 +248,11 @@ tags may be specified as a comma separated list. An example value is
"artist,album,title,track". The special value "none" may be used alone to
disable all metadata. The default is to use all known tag types except for
comments.
.TP
.B auto_update <yes or no>
This specifies the wheter to support automatic update of music database when
files are changed in music_directory. The default is to disable autoupdate
of database.
.SH REQUIRED AUDIO OUTPUT PARAMETERS
.TP
.B type <type>
...
...
doc/mpdconf.example
View file @
f6742687
...
...
@@ -109,6 +109,10 @@
#
#metadata_to_use "artist,album,title,track,name,genre,date,composer,performer,disc"
#
# This setting enables automatic update of MPD's database when files in
# music_directory are changed.
#
#auto_update "yes"
###############################################################################
...
...
src/conf.c
View file @
f6742687
...
...
@@ -91,6 +91,7 @@ static struct config_entry config_entries[] = {
{
.
name
=
CONF_INPUT
,
true
,
true
},
{
.
name
=
CONF_GAPLESS_MP3_PLAYBACK
,
false
,
false
},
{
.
name
=
CONF_PLAYLIST_PLUGIN
,
true
,
true
},
{
.
name
=
CONF_AUTO_UPDATE
,
false
,
false
},
{
.
name
=
"filter"
,
true
,
true
},
};
...
...
src/conf.h
View file @
f6742687
...
...
@@ -68,6 +68,7 @@
#define CONF_INPUT "input"
#define CONF_GAPLESS_MP3_PLAYBACK "gapless_mp3_playback"
#define CONF_PLAYLIST_PLUGIN "playlist_plugin"
#define CONF_AUTO_UPDATE "auto_update"
#define DEFAULT_PLAYLIST_MAX_LENGTH (1024*16)
#define DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS false
...
...
src/main.c
View file @
f6742687
...
...
@@ -372,9 +372,13 @@ int main(int argc, char *argv[])
glue_state_file_init
();
success
=
config_get_bool
(
CONF_AUTO_UPDATE
,
false
);
#ifdef ENABLE_INOTIFY
if
(
mapper_has_music_directory
())
mpd_inotify_init
();
if
(
success
&&
mapper_has_music_directory
())
mpd_inotify_init
();
#else
if
(
success
)
g_warning
(
"inotify: auto_update was disabled. enable during compilation phase"
);
#endif
config_global_check
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment