add support for lyricsplugin database

This commit is contained in:
Andrzej Rybczak
2009-02-02 12:00:19 +01:00
parent e59b14c56d
commit 6217bf04c2
5 changed files with 86 additions and 13 deletions

View File

@@ -284,6 +284,7 @@ void DefaultConfiguration(ncmpcpp_config &conf)
conf.seek_time = 1;
conf.playlist_disable_highlight_delay = 5;
conf.message_delay_time = 4;
conf.lyrics_db = 1;
}
string GetLineValue(string &line, char a, char b, bool once)
@@ -699,6 +700,11 @@ void ReadConfiguration(ncmpcpp_config &conf)
{
conf.set_window_title = v == "yes";
}
else if (cl.find("lyrics_database") != string::npos)
{
if (!v.empty())
conf.lyrics_db = StrToInt(v);
}
else if (cl.find("song_window_title_format") != string::npos)
{
if (!v.empty())