new feature: support for fetching lyrics for currently playing song in background
This commit is contained in:
@@ -251,6 +251,7 @@ void NcmpcppKeys::SetDefaults()
|
||||
ToggleInterface[0] = '\\';
|
||||
ToggleSeparatorsInPlaylist[0] = '!';
|
||||
ToggleLyricsDB[0] = 'L';
|
||||
ToggleFetchingLyricsInBackground[0] = 'F';
|
||||
GoToParentDir[0] = KEY_BACKSPACE;
|
||||
SwitchTagTypeList[0] = '`';
|
||||
Quit[0] = 'q';
|
||||
@@ -339,6 +340,7 @@ void NcmpcppKeys::SetDefaults()
|
||||
ToggleInterface[1] = NullKey;
|
||||
ToggleSeparatorsInPlaylist[1] = NullKey;
|
||||
ToggleLyricsDB[1] = NullKey;
|
||||
ToggleFetchingLyricsInBackground[1] = NullKey;
|
||||
GoToParentDir[1] = 127;
|
||||
SwitchTagTypeList[1] = NullKey;
|
||||
Quit[1] = 'Q';
|
||||
@@ -404,6 +406,7 @@ void NcmpcppConfig::SetDefaults()
|
||||
albums_in_tag_editor = false;
|
||||
incremental_seeking = true;
|
||||
now_playing_lyrics = false;
|
||||
fetch_lyrics_in_background = false;
|
||||
local_browser_show_hidden_files = false;
|
||||
search_in_db = true;
|
||||
display_screens_numbers_on_start = true;
|
||||
@@ -628,6 +631,8 @@ void NcmpcppKeys::Read()
|
||||
GetKeys(key, ToggleSeparatorsInPlaylist);
|
||||
else if (key.find("key_toggle_lyrics_db ") != std::string::npos)
|
||||
GetKeys(key, ToggleLyricsDB);
|
||||
else if (key.find("key_toggle_fetching_lyrics_for_current_song_in_background ") != std::string::npos)
|
||||
GetKeys(key, ToggleFetchingLyricsInBackground);
|
||||
else if (key.find("key_go_to_containing_directory ") != std::string::npos)
|
||||
GetKeys(key, GoToContainingDir);
|
||||
else if (key.find("key_go_to_media_library ") != std::string::npos)
|
||||
@@ -987,6 +992,10 @@ void NcmpcppConfig::Read()
|
||||
{
|
||||
now_playing_lyrics = v == "yes";
|
||||
}
|
||||
else if (cl.find("fetch_lyrics_for_current_song_in_background") != std::string::npos)
|
||||
{
|
||||
fetch_lyrics_in_background = v == "yes";
|
||||
}
|
||||
else if (cl.find("ncmpc_like_songs_adding") != std::string::npos)
|
||||
{
|
||||
ncmpc_like_songs_adding = v == "yes";
|
||||
|
||||
Reference in New Issue
Block a user