new feature: custom command execution on song change

This commit is contained in:
Andrzej Rybczak
2009-05-21 23:05:53 +02:00
parent 3d9c242f4d
commit 7eb74a6da2
4 changed files with 15 additions and 0 deletions

View File

@@ -533,6 +533,11 @@ void ReadConfiguration(ncmpcpp_config &conf)
if (!v.empty())
conf.system_encoding = v + "//TRANSLIT";
}
else if (cl.find("execute_on_song_change") != string::npos)
{
if (!v.empty())
conf.execute_on_song_change = v;
}
else if (cl.find("browser_playlist_prefix") != string::npos)
{
if (!v.empty())