support for fetching artist's info from last.fm

This commit is contained in:
unK
2008-09-15 12:45:02 +02:00
parent 0664f9ed2b
commit 9795fc4488
7 changed files with 231 additions and 10 deletions

View File

@@ -66,7 +66,8 @@ void DefaultKeys(ncmpcpp_keys &keys)
keys.PrevFoundPosition[0] = ',';
keys.ToggleFindMode[0] = 'w';
keys.EditTags[0] = 'e';
keys.ShowInfo[0] = 'i';
keys.SongInfo[0] = 'i';
keys.ArtistInfo[0] = 'I';
keys.GoToPosition[0] = 'g';
keys.Lyrics[0] = 'l';
keys.ReverseSelection[0] = 'v';
@@ -125,7 +126,8 @@ void DefaultKeys(ncmpcpp_keys &keys)
keys.PrevFoundPosition[1] = null_key;
keys.ToggleFindMode[1] = null_key;
keys.EditTags[1] = null_key;
keys.ShowInfo[1] = null_key;
keys.SongInfo[1] = null_key;
keys.ArtistInfo[1] = null_key;
keys.GoToPosition[1] = null_key;
keys.Lyrics[1] = null_key;
keys.ReverseSelection[1] = null_key;
@@ -381,7 +383,9 @@ void ReadKeys(ncmpcpp_keys &keys)
else if (it->find("key_go_to_position ") != string::npos)
GetKeys(*it, keys.GoToPosition);
else if (it->find("key_song_info ") != string::npos)
GetKeys(*it, keys.ShowInfo);
GetKeys(*it, keys.SongInfo);
else if (it->find("key_artist_info ") != string::npos)
GetKeys(*it, keys.ArtistInfo);
else if (it->find("key_lyrics ") != string::npos)
GetKeys(*it, keys.Lyrics);
else if (it->find("key_reverse_selection ") != string::npos)