settings: add support for preferred last.fm info language
This commit is contained in:
@@ -2068,7 +2068,7 @@ int main(int argc, char *argv[])
|
||||
else if (myScreen == myLibrary && myLibrary->Main() == myLibrary->Artists)
|
||||
artist = myLibrary->Artists->Current();
|
||||
|
||||
if (!artist.empty() && myLastfm->SetArtistInfoArgs(artist))
|
||||
if (!artist.empty() && myLastfm->SetArtistInfoArgs(artist, Config.lastfm_preferred_language))
|
||||
myLastfm->SwitchTo();
|
||||
}
|
||||
# endif // HAVE_CURL_CURL_H
|
||||
|
||||
@@ -763,6 +763,11 @@ void NcmpcppConfig::Read()
|
||||
new_header_second_line += '}';
|
||||
}
|
||||
}
|
||||
else if (cl.find("lastfm_preferred_language") != std::string::npos)
|
||||
{
|
||||
if (!v.empty() && v != "en")
|
||||
lastfm_preferred_language = v;
|
||||
}
|
||||
else if (cl.find("browser_playlist_prefix") != std::string::npos)
|
||||
{
|
||||
if (!v.empty())
|
||||
|
||||
@@ -166,6 +166,7 @@ struct NcmpcppConfig
|
||||
std::string execute_on_song_change;
|
||||
std::string new_header_first_line;
|
||||
std::string new_header_second_line;
|
||||
std::string lastfm_preferred_language;
|
||||
std::basic_string<my_char_t> progressbar;
|
||||
|
||||
std::string pattern;
|
||||
|
||||
Reference in New Issue
Block a user